Ask Your Question

joystick teleop causes segmentation fault

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

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


Which joystick_teleop_node are you referring to specifically?

gvdhoorn gravatar imagegvdhoorn ( 2017-02-15 01:13:20 -0600 )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 imageRodolfo8 ( 2017-02-15 01:33:35 -0600 )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 imagegvdhoorn ( 2017-02-15 02:07:01 -0600 )edit

I will try following this tutorial and see what happens.

Rodolfo8 gravatar imageRodolfo8 ( 2017-02-15 02:07:43 -0600 )edit

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

Rodolfo8 gravatar imageRodolfo8 ( 2017-02-15 02:09:29 -0600 )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 imagegvdhoorn ( 2017-02-15 02:10:07 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted

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

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

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

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

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


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

Seen: 413 times

Last updated: Mar 16 '17