Example files and configurations for Gazebo Classic simulation of Universal Robots' manipulators.
Since Gazebo classic will not be supported from ROS 2 Jazzy on, this package is built against
Humble and Iron only. The ros2
branch contains a version that is running on ROS Rolling on
Ubuntu 22.04 at the time of writing. However, it is no longer supported.
Humble | Iron | |
---|---|---|
Branch | humble | iron |
Build status |
|
|
A more detailed build status shows the state of all CI workflows inside this repo. Please note that the detailed view is intended for developers, while the one here should give end users an overview of the current released state.
Skip any of below steps is not applicable.
-
Create a colcon workspace:
export COLCON_WS=~/workspaces/ur_gazebo mkdir -p $COLCON_WS/src
NOTE: Feel free to change
~/workspaces/ur_gazebo
to whatever absolute path you want.NOTE: Over time you will probably have multiple ROS workspaces, so it makes sense to them all in a subfolder. Also, it is good practice to put the ROS version in the name of the workspace, for different tests you could just add a suffix to the base name
ur_gazebo
. -
Download the required repositories and install package dependencies:
cd $COLCON_WS git clone git@github.com:UniversalRobots/Universal_Robots_ROS2_Gazebo_Simulation.git src/Universal_Robots_ROS2_Gazebo_Simulation vcs import src --input src/Universal_Robots_ROS2_Gazebo_Simulation/Universal_Robots_ROS2_Gazebo_Simulation.<ros-distro>.repos rosdep install --ignore-src --from-paths src -y cd ..
To configure and build workspace execute following commands:
cd $COLCON_WS
colcon build --symlink-install --mixin rel-with-deb-info compile-commands ccache
ros2 launch ur_simulation_gazebo ur_sim_control.launch.py
Move robot using test script from ur_robot_driver
package (if you've installed that one):
ros2 launch ur_robot_driver test_joint_trajectory_controller.launch.py
Example using MoveIt with simulated robot:
ros2 launch ur_simulation_gazebo ur_sim_moveit.launch.py