Skip to content

Commit

Permalink
Update README.md for starting isaacsim enviroments
Browse files Browse the repository at this point in the history
Related to space-ros#48
  • Loading branch information
franklinselva committed Sep 11, 2024
1 parent 8fcbd66 commit e7d50ed
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
2 changes: 2 additions & 0 deletions canadarm2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ To start the demo, there are few dependencies that need to be installed. The fol

This will start the demo in one terminal and gazebo in another terminal. To control the canadarm2, we provide ros2 services for the demo. You can control the rover using the following services.

> NOTE: If you are using Isaac Sim, make sure to start the simulation in Isaac Sim before running the demo. You can find more information on how to start the simulation in Isaac Sim [here](https://github.com/space-ros/simulation/).

1. Control arm of the canadarm

```bash
Expand Down
15 changes: 15 additions & 0 deletions canadarm2/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,18 @@ services:
"-c",
"source /home/spaceros-user/canadarm_ws/install/setup.bash && ros2 launch canadarm_demo canadarm.launch.py",
]
canadarm_demo_isaacsim:
image: osrf/space-ros:canadarm_demo_isaacsim
build:
context: ./
dockerfile: ./Dockerfile
environment:
- PYTHONUNBUFFERED=1 # important to show error messages if a ros service crashes!
- RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
network_mode: host
command:
[
"bash",
"-c",
"source /home/spaceros-user/canadarm_ws/install/setup.bash && ros2 launch canadarm_demo canadarm.launch.py environment:=isaacsim",
]
4 changes: 2 additions & 2 deletions canadarm2/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
docker compose down

if [ "$1" == "--isaacsim" ]; then
docker compose up -d canadarm_isaacsim
docker compose up -d canadarm_demo_isaacsim
else
docker compose up -d
docker compose up -d canadarm_demo canadarm_gui
fi

0 comments on commit e7d50ed

Please sign in to comment.