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

need help with creating my first gazebo plugin

asked 2012-06-16 00:00:38 -0500

dmeltz gravatar image

updated 2012-06-17 10:15:02 -0500


my intention is to control and move a simple robot within the gazebo simulation. i already created the robot model with a urdf file and now i want to move it around. as i understand, the best way to do that, is to create a plugin. i tried to follow step by step the instructions on :

but when i type "rosmake" I get an error :

/home/daniel/ros_workspace/gazebo_tutorials/src/simple_world_plugin.cpp:1:20: fatal error: gazebo.h: No such file or directory compilation terminated.

I tried to update ROS by typing "sudo apt-get install ros-fuerte-desktop-full" but still, the problem remains.

I am using ROS Fuerte with Ubuntu 12.04.

Is anyone can suggest a better tutorial, or a way to overcome this problem? Thanks.

edit retag flag offensive close merge delete


have you set your ROS_PACKAGE_PATH correctly ? if not try rospack profile then export ROS_PACKAGE_PATH, that should work

cagatay gravatar image cagatay  ( 2012-06-17 11:33:10 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2012-06-18 10:57:01 -0500

rctaylor gravatar image

I had the same problem and found that if you include "common/Plugin.hh" instead of "gazebo.h" it will work. My only explanation for why is that the tutorial is a "work in progress."

edit flag offensive delete link more

answered 2012-09-10 20:50:44 -0500

ChengXiang gravatar image

The intro tutorial was updated. Maybe you can try it again? I managed to complete the example.

edit flag offensive delete link more

Question Tools



Asked: 2012-06-16 00:00:38 -0500

Seen: 1,666 times

Last updated: Sep 10 '12