Gazebo | Ignition | Community
Ask Your Question
0

run c++ code on Gazebo simulator

asked 2016-08-09 06:28:41 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

so i have this c++ code https://github.com/erlerobot/ros_erle...

and I want to run+test it on Gazebo simulator, any idea how can I do this I have ROS indigo installed in my laptop and Gazebo 4 all under ubuntu 14.04. I'm a beginner so if can provide me with the steps that will be great :)

Thank you

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-08-10 02:03:32 -0500

Brosseau.F gravatar image

updated 2016-08-10 02:04:32 -0500

So you have a node that will call a service to make a robot move , am I right ?

You probably have to write a plugin that will receive the call of your service and make your robot move :

gazebo_ros plugin tutorial

model plugins example

And in a launch file, you will start your node, gazebo and spawn your robot model(which will include a plugin tag with your plugin):

roslaunch tutorial

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-08-09 06:28:41 -0500

Seen: 1,936 times

Last updated: Aug 10 '16