forked from space-ros/demos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation for canadarm2 demos
related to space-ros/space-ros#178 - Add README.md for Canadarm2 demo - Update Main README.md of the demos repository
- Loading branch information
1 parent
5a30311
commit ae7dce4
Showing
3 changed files
with
51 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Curiosity Rover - Demo | ||
|
||
This is a simple demo of controlling the canadarm using spaceROS. | ||
|
||
### Installation | ||
|
||
To start the demo, there are few dependencies that need to be installed. The following steps will guide you through the installation process. | ||
|
||
1. You will need ROS Humble on your host system. If it is not already installed, you can follow the instructions [here](https://docs.ros.org/en/humble/Installation.html). | ||
2. You will need Gazebo Sim installed on your system. If not, you can follow the instructions [here](https://gazebosim.org/docs/all/getstarted/). | ||
3. You will need docker installed on your system. If not, you can follow the instructions [here](https://docs.docker.com/get-docker/). | ||
4. Install xterm for running the demo. You can install it using the following command. | ||
```bash | ||
sudo apt-get install xterm | ||
``` | ||
|
||
### How to run the demo | ||
|
||
1. Clone the demo repository | ||
```bash | ||
git clone http://github.com/space-ros/demo.git | ||
``` | ||
2. cd into the `canadarm2` directory | ||
```bash | ||
cd canadarm2 | ||
``` | ||
3. To build and run the demo, we use `Makefile`. Run the following command to build the docker image and run the container. | ||
```bash | ||
# To see the list of available commands | ||
make help | ||
# To build and run the demo | ||
make run | ||
``` | ||
|
||
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. | ||
|
||
1. Control arm of the canadarm | ||
|
||
```bash | ||
# To open an arm in outstretched position | ||
ros2 service call /open_arm std_srvs/srv/Empty | ||
# To move the arm to its default close pose of all zeros | ||
ros2 service call /close_arm std_srvs/srv/Empty | ||
# To move the arm to a random pose | ||
ros2 service call /random_arm std_srvs/srv/Empty | ||
``` |
This file was deleted.
Oops, something went wrong.