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

need help with creating my first gazebo plugin

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

dmeltz gravatar image

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

Hello.

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 :

http://ros.org/wiki/simulator_gazebo/Tutorials/GazeboPluginIntro

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

Comments

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 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
0

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

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
1

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

ChengXiang gravatar image

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

edit flag offensive delete link more

Question Tools

6 followers

Stats

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

Seen: 1,710 times

Last updated: Sep 10 '12