roslaunch urdf_sim_tutorial gazebo.launch
- Link Gazebo and ROS
- See 09-publishjoints.urdf.xacro file
<gazebo>
<plugin name="gazebo_ros_control" filename="libgazebo_ros_control.so">
<robotNamespace>/</robotNamespace>
</plugin>
</gazebo>
- Test the model that links ROS and Gazebo
- Does not do anything. It is required more information!
roslaunch urdf_sim_tutorial gazebo.launch model:=`rospack find urdf_sim_tutorial`/urdf/09-publishjoints.urdf.xacro
- Spawning controllers
- Kind off bits of ROS code to run within Gazebo
- Specified in the file joints.yaml
- Test the spawner script that loads the controller and publishes the state
of the robot's joints into ROS directly from Gazebo
- If you execute
rostopic list
, you can see that/joint_states
topic is publishing but with nothing in it
- If you execute
roslaunch urdf_sim_tutorial 09-joints.launch
- Transmissions
- For every non-fixedd joint, it is necessary to specify a transmission to tell Gazebo that to do with the joint!
- See tags
<transmission>
in the urdf file (including for the wheels)
- Joint control
- Specify a joint controller for each joint
- See the yaml files in config
roslaunch urdf_sim_tutorial 13-diffdrive.launch
- Introduction to Xacro and URDF: https://ni.www.techfak.uni-bielefeld. de/files/URDF-XACRO.pdf
- Tutorial URDF: http://wiki.ros.org/urdf/Tutorials