Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tonylitianyu authored Jul 19, 2022
1 parent f100637 commit 4f18fd6
Showing 1 changed file with 1 addition and 74 deletions.
75 changes: 1 addition & 74 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <container-name> 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

0 comments on commit 4f18fd6

Please sign in to comment.