ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

joystick teleop causes segmentation fault

asked 2017-02-14 16:01:44 -0500

joy_node runs fine but teleop_node causes segmentation fault. Also tried it with joystick_teleop_node and it does the same thing. I have the Husky simulator running in Gazebo and Rviz but I wanted to control Husky with an Xbox controller and I can't get these other nodes to work. I have Ubuntu 14.4 and am using ROS Indigo.

edit retag flag offensive close merge delete

Comments

Which joystick_teleop_node are you referring to specifically?

gvdhoorn gravatar image gvdhoorn  ( 2017-02-15 01:13:20 -0500 )edit

The one from utexas bwi repository. I tried this one because it had worked for me last year on this same laptop. I tried these two nodes without Gazebo and Rviz loaded but it still faulted.

Rodolfo8 gravatar image Rodolfo8  ( 2017-02-15 01:33:35 -0500 )edit

The one from utexas bwi repository.

Could I ask you to please always include either a reference or a link to the specific pkg(s) you are using?

As for SEGFAULTs, a gdb backtrace is almost an obligation. Could you add one? Can't guarantee that will help, but it's a good start.

gvdhoorn gravatar image gvdhoorn  ( 2017-02-15 02:07:01 -0500 )edit

I will try following this tutorial and see what happens. http://wiki.ros.org/joy/Tutorials/Wri...

Rodolfo8 gravatar image Rodolfo8  ( 2017-02-15 02:07:43 -0500 )edit

So far I don't have experience with gdb backtrace.

Rodolfo8 gravatar image Rodolfo8  ( 2017-02-15 02:09:29 -0500 )edit

Does joystick_teleop_nodeSEGFAULT when you run it with just joy but without any of the other nodes / programs (ie: Gazebo and RViz)?

gvdhoorn gravatar image gvdhoorn  ( 2017-02-15 02:10:07 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
3

answered 2017-02-15 02:11:41 -0500

gvdhoorn gravatar image

If you don't want to diagnose the problem, but rather work-around it, then I'd recommend using teleop_twist_joy. It's a standard pkg for joystick teleoperation.

Unless you want to educate yourself, writing yet another teleop node seems unnecessary.

edit flag offensive delete link more
0

answered 2017-03-16 02:24:00 -0500

Going carefully trough the joystick tutorials took care of the problem. Those are excellent!

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-02-14 16:01:44 -0500

Seen: 645 times

Last updated: Mar 16 '17