https://github.com/universalrobots/universal_robots_ros2_gz_simulation
https://github.com/universalrobots/universal_robots_ros2_gz_simulation
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/universalrobots/universal_robots_ros2_gz_simulation
- Owner: UniversalRobots
- License: bsd-3-clause
- Created: 2021-12-15T12:15:45.000Z (over 3 years ago)
- Default Branch: ros2
- Last Pushed: 2025-05-15T09:08:34.000Z (about 1 month ago)
- Last Synced: 2025-05-15T09:41:29.943Z (about 1 month ago)
- Language: Python
- Size: 616 KB
- Stars: 56
- Watchers: 9
- Forks: 24
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
Universal_Robots_ROS2_GZ_Simulation
==========================================Example files and configurations for Gazebo simulation of Universal Robots' manipulators.
## Build status
Humble
Jazzy
Kilted
Rolling
Branch
humble
ros2
ros2
ros2
Build status
![]()
![]()
![]()
![]()
A more [detailed build status](ci_status.md) 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.## Using the repository
Skip any of below steps is not applicable.### Setup ROS Workspace
1. Create a colcon workspace:
```
export COLCON_WS=~/workspaces/ur_gz
mkdir -p $COLCON_WS/src
```> **NOTE:** Feel free to change `~/workspaces/ur_gz` 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_gz`.1. Download the required repositories and install package dependencies:
```
cd $COLCON_WS
git clone -b ros2 https://github.com/UniversalRobots/Universal_Robots_ROS2_GZ_Simulation.git src/ur_simulation_gz
rosdep update && rosdep install --ignore-src --from-paths src -y
```### Configure and Build Workspace:
To configure and build workspace execute following commands:
```
cd $COLCON_WS
colcon build --symlink-install
```## Running Executable
First, source your workspace```
source $COLCON_WS/install/setup.bash
``````
ros2 launch ur_simulation_gz ur_sim_control.launch.py
```Move robot using test script from `ur_robot_driver` package (if you've installed that one):
```
ros2 run ur_robot_driver example_move.py
```Example using MoveIt with simulated robot:
```
ros2 launch ur_simulation_gz ur_sim_moveit.launch.py
```