Ask Your Question

How to create a package for new gazebo plugins?

asked 2011-09-04 22:53:51 -0500

SAK gravatar image

updated 2011-09-05 03:40:44 -0500

tfoote gravatar image


I have created plugins for IR Sensor and Sonar Sensor. I want to create a package for both so that it can be tested on other computer and then submitted to ROS. Further i would like to mention here that i have created Sonar Sensor (IRSensor and its controller are already present in gazebo) by the name of SonarSensor and its controller named "sonar_array" as well. I have also done some changes to files called MultiRayShape and gz.h( i have added sonarIface in the gz.h). Similarly xacro files are also created for IRSensor and Sonar Sensor.

I would like to know how to create package for sonar sensor, IRSensor plugin and SonarSensor plugin. Any Help in this regard will be appreciated.

Regards, Saeed Anwar

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-09-04 23:06:53 -0500

Ugo gravatar image

Do you mean you want to create a stack to regroup your different packages?

You can use roscreate-stack and roscreate-pkg to create a stack or a package ( see this wiki page )

edit flag offensive delete link more


Thank for your Reply. For time being i am only creating packages, not regrouping. I have seen this tutorial, but i does specify how to put files in the package. further how i will specify the path for the files to be put in the gazebo during package creation?
SAK gravatar image SAK  ( 2011-09-04 23:15:24 -0500 )edit
If you depend on roscpp for example, you'll have a src and an include directory where you can put your sources. If your work contains files that should be copied to the gazebo package, may be you should propose a patch for this package?
Ugo gravatar image Ugo  ( 2011-09-04 23:40:29 -0500 )edit
I have two kind of files. some files are newly created (GazeboRosIr, and GazeboRosSonar, Sonarsensor, sonar_array) and some are modified files (MultiRayShape, gz). now how can i deal with all these
SAK gravatar image SAK  ( 2011-09-04 23:47:35 -0500 )edit
Are those binaries or sources?
Ugo gravatar image Ugo  ( 2011-09-04 23:55:19 -0500 )edit
these are only source files like the one present in /opt/ros/diamondback/stacks/simulator_gazebo/gazebo_plugins (gazebo_ros_ir.cpp) and the xacro files present /opt/ros/diamondback/stacks/pr2_common/pr2_description/urdf/sensors (xx.gazebo.xacro and xx.urdf.xacro)
SAK gravatar image SAK  ( 2011-09-05 00:00:52 -0500 )edit

Your Answer

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

Add Answer

Question Tools


Asked: 2011-09-04 22:53:51 -0500

Seen: 446 times

Last updated: Sep 05 '11