From 4f18fd6d0924ad4a558c368245f3501b69c780b4 Mon Sep 17 00:00:00 2001 From: Tianyu Li Date: Tue, 19 Jul 2022 13:48:58 -0400 Subject: [PATCH] Update README.md --- README.md | 75 +------------------------------------------------------ 1 file changed, 1 insertion(+), 74 deletions(-) diff --git a/README.md b/README.md index 713b66f9..e393e896 100644 --- a/README.md +++ b/README.md @@ -2,77 +2,4 @@ This repository provides examples for running robots using Space ROS - -## Building the Demo Docker - -The demos run in the Space ROS Demo docker. Please proceed to this [repo](https://github.com/tonylitianyu/docker-images/tree/tonylitianyu/demo_depends), clone and perform the following steps to build the docker image. - -Within folder ```/demo_spaceros```, run: - -``` -$ ./build-image.sh -``` - -## Running the Demo Docker - -run the following to allow GUI passthrough: -``` -$ xhost +local:docker -``` - -Then run: -``` -$ ./run.sh -``` - -Depends on the host computer, you might need to remove ```--gpus all``` flag in ```run.sh```, which uses your GPUs - -## Running the Demo - -Launch the demo: -``` -$ ros2 launch mars_rover mars_rover.launch.py -``` - -On the top left corner, click on the refresh button to show camera feed - -## Perform Tasks - -### Curiosity Rover - -Open a new terminal and attach to the currently running container - -``` -$ docker -it exec bash -``` - -Make sure packages are sourced - -``` -$ source /root/src/spaceros_ws/install/setup.bash -``` - -``` -$ source /root/src/depends_ws/install/setup.bash -``` - -Explore randomly on the Mars surface: - -``` -$ ros2 service call /random_walk std_srvs/srv/Empty -``` - -Open the tool arm: - -``` -$ ros2 service call /open_arm std_srvs/srv/Empty -``` - -Close the tool arm: - -``` -$ ros2 service call /close_arm std_srvs/srv/Empty -``` - - - +Please refer to the [dockerfile repo](https://github.com/space-ros/docker-images/tree/main/demo_spaceros) for running instruction