Gazebo simulator is not subscribing to joy messages




This forum is dedicated to questions regarding Challenge 3

Gazebo simulator is not subscribing to joy messages

Postby danielserrano » Sat 11. Oct 2014, 16:58

Hello,

I was hoping to fly the gazebo model by sending Joy messages to the /firefly/joy topic as suggested in the technical annex in page 12. Obviously, just for debugging. But my gazebo ros node, launched with euroc_simulation_server and any launch file for tasks 3 and 4, is not subscribing to this topic.

Did I miss something?

Regards,
Daniel.
danielserrano
 
Posts: 1
Joined: Sat 11. Oct 2014, 16:52

by Advertising » Sat 11. Oct 2014, 16:58

Advertising
 

Re: Gazebo simulator is not subscribing to joy messages

Postby markusachtelik » Tue 14. Oct 2014, 19:51

hi,

you can enable this by adding the following into the launch files for T3 and T4 in the simulation VM:

Code: Select all
<node ns="firefly" name="joy_node" pkg="joy" type="joy_node" />
<node ns="firefly" name="mav_joy_interface" pkg="mav_joy_interface" type="mav_joy_interface" />


We didn't put it in there in the end to avoid interference with contestant's controllers.

You may have to play around a bit with the axes and direction assignment, depending on your joystick. You can find the parameters in mav_joy_interface/src/joy.cpp

Hope that helps, and sorry for the confusion!
markusachtelik
 
Posts: 27
Joined: Mon 7. Jul 2014, 20:09


TAGS

Return to Challenge 3

Who is online

No registered users

cron