Skip to content

Commit c5bcf27

Browse files
committed
docs: updated install instructions
- updated install instructions - updated licenses and readmes
1 parent a8498fa commit c5bcf27

36 files changed

Lines changed: 649 additions & 159 deletions

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ To install a specific robot extension (example for Franka FR3):
176176

177177
```shell
178178
sudo apt install $(cat extensions/rcs_fr3/debian_deps.txt)
179+
pip install rcs-fr3
180+
181+
# or install it locally
179182
pip install -ve extensions/rcs_fr3
180183
```
181184

docs/extensions/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ overview
77
rcs_fr3
88
rcs_panda
99
rcs_xarm7
10+
rcs_ur5e
1011
rcs_so101
1112
rcs_realsense
1213
rcs_usb_cam
1314
rcs_tacto
1415
rcs_robotics_library
1516
rcs_robotiq2f85
17+
rcs_zed
1618
```

docs/extensions/overview.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,17 @@ An extension is a separate Python package that integrates with RCS. Extensions c
1111

1212
## Installing Extensions
1313

14-
Extensions are typically installed via `pip`.
14+
Extensions are typically installed from PyPI.
1515

1616
```shell
17-
pip install -ve extensions/rcs_fr3
17+
pip install rcs-fr3
18+
```
19+
20+
For local development from a checkout of this repository, first install RCS itself from the repository root and then install the extension via its path:
21+
22+
```shell
23+
pip install -ve . --no-build-isolation
24+
pip install -ve extensions/rcs_fr3 --no-build-isolation
1825
```
1926

2027
## Available Extensions

docs/extensions/rcs_fr3.md

Lines changed: 25 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,15 @@ This extension provides support for the Franka Research 3 (FR3) robot in RCS.
55
## Installation
66

77
```shell
8-
# from root directory
98
sudo apt install $(cat extensions/rcs_fr3/debian_deps.txt)
10-
pip install -ve extensions/rcs_fr3
9+
pip install rcs-fr3
10+
```
11+
12+
For local development from this repository:
13+
14+
```shell
15+
pip install -ve . --no-build-isolation
16+
pip install -ve extensions/rcs_fr3 --no-build-isolation
1117
```
1218

1319
### Configuration
@@ -22,41 +28,25 @@ DESK_PASSWORD=...
2228
## Usage
2329

2430
```python
25-
import rcs_fr3
26-
from rcs_fr3._core import hw
27-
from rcs_fr3.desk import FCI, ContextManager, Desk, load_creds_franka_desk
28-
import rcs
29-
import numpy as np
30-
31-
ROBOT_IP = "172.16.0.2" # Replace with your robot IP
32-
33-
user, pw = load_creds_franka_desk()
34-
with FCI(Desk(ROBOT_IP, user, pw), unlock=False, lock_when_done=False):
35-
robot_meta = rcs.ROBOTS[rcs.common.RobotType.FR3]
36-
ik = rcs.common.Pin(robot_meta.mjcf_model_path, robot_meta.attachment_site)
37-
38-
# Configure Robot
39-
robot = hw.Franka(ROBOT_IP, ik)
40-
robot_cfg = hw.FR3Config()
41-
robot_cfg.tcp_offset = rcs.common.Pose(rcs.common.FrankaHandTCPOffset())
42-
robot.set_config(robot_cfg)
43-
44-
# Configure Gripper
45-
gripper_cfg_hw = hw.FHConfig()
46-
gripper_cfg_hw.epsilon_inner = gripper_cfg_hw.epsilon_outer = 0.1
47-
gripper_cfg_hw.speed = 0.1
48-
gripper_cfg_hw.force = 30
49-
gripper = hw.FrankaHand(ROBOT_IP, gripper_cfg_hw)
50-
51-
# Move Robot
52-
robot.set_cartesian_position(
53-
robot.get_cartesian_position() * rcs.common.Pose(translation=np.array([0.05, 0, 0]))
54-
)
55-
56-
# Grasp
57-
gripper.grasp()
31+
from rcs.envs.base import ControlMode, RelativeTo
32+
from rcs_fr3.configs import DefaultFR3HardwareEnv
33+
34+
env_creator = DefaultFR3HardwareEnv()
35+
env_creator.ip = "192.168.101.1"
36+
37+
cfg = env_creator.config()
38+
cfg.control_mode = ControlMode.CARTESIAN_TQuat
39+
cfg.camera_cfgs = None
40+
cfg.max_relative_movement = 0.5
41+
cfg.relative_to = RelativeTo.LAST_STEP
42+
43+
env = env_creator.create_env(cfg)
44+
obs, info = env.reset()
45+
print(env.get_wrapper_attr("robot").get_cartesian_position())
5846
```
5947

48+
For a maintained example, see `examples/fr3/fr3_env_cartesian_control.py`.
49+
6050
## CLI
6151

6252
The extension defines useful commands to handle the FR3 robot without the need to use the Desk Website.

docs/extensions/rcs_panda.md

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,35 @@ This extension provides support for the Franka Emika Panda robot in RCS.
55
## Installation
66

77
```shell
8-
# from root directory
9-
sudo apt install $(cat extensions/rcs_fr3/debian_deps.txt)
10-
pip install -ve extensions/rcs_panda
8+
sudo apt install $(cat extensions/rcs_panda/debian_deps.txt)
9+
pip install rcs-panda
10+
```
11+
12+
For local development from this repository:
13+
14+
```shell
15+
pip install -ve . --no-build-isolation
16+
pip install -ve extensions/rcs_panda --no-build-isolation
1117
```
1218

1319
## Usage
1420

15-
Please refer to the `rcs_fr3` documentation for similar usage patterns, or check the examples in the repository.
21+
```python
22+
from rcs.envs.base import ControlMode, RelativeTo
23+
from rcs_panda.configs import DefaultPandaHardwareEnv
24+
25+
env_creator = DefaultPandaHardwareEnv()
26+
env_creator.ip = "192.168.4.100"
27+
28+
cfg = env_creator.config()
29+
cfg.control_mode = ControlMode.CARTESIAN_TQuat
30+
cfg.camera_cfgs = None
31+
cfg.max_relative_movement = 0.2
32+
cfg.relative_to = RelativeTo.LAST_STEP
33+
34+
env = env_creator.create_env(cfg)
35+
obs, info = env.reset()
36+
print(env.get_wrapper_attr("robot").get_cartesian_position())
37+
```
38+
39+
For a maintained example, see `extensions/rcs_panda/src/rcs_panda/panda_env_cartesian_control.py`.

docs/extensions/rcs_realsense.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,19 @@ This extension provides support for Intel RealSense cameras in RCS.
55
## Installation
66

77
```shell
8+
pip install rcs-realsense
9+
```
10+
11+
For local development:
12+
13+
```shell
14+
pip install -ve . --no-build-isolation
815
pip install -ve extensions/rcs_realsense
916
```
1017

1118
## CLI
1219

1320
```shell
14-
python -m rcs_realsense --help
21+
python -m rcs_realsense serials
22+
python -m rcs_realsense rgb-view
1523
```

docs/extensions/rcs_robotics_library.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ This extension provides integration with the [Robotics Library (RL)](https://www
55
## Installation
66

77
```shell
8-
# from root directory
98
sudo apt install $(cat extensions/rcs_robotics_library/debian_deps.txt)
10-
pip install -ve extensions/rcs_robotics_library
9+
pip install rcs-robotics-library
10+
```
11+
12+
For local development from this repository:
13+
14+
```shell
15+
pip install -ve . --no-build-isolation
16+
pip install -ve extensions/rcs_robotics_library --no-build-isolation
1117
```

docs/extensions/rcs_robotiq2f85.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ This extension provides support for Robotiq 2F-85 Gripper in RCS.
55
## Installation
66

77
```shell
8+
pip install rcs-robotiq2f85
9+
```
10+
11+
For local development:
12+
13+
```shell
14+
pip install -ve . --no-build-isolation
815
pip install -ve extensions/rcs_robotiq2f85
916
```
1017

@@ -20,9 +27,9 @@ chmod 777 /dev/ttyUSB0
2027

2128
## Usage
2229
```python
23-
from rcs_robotiq2f85 import RobotiQGripper
30+
from rcs_robotiq2f85 import RobotiQ2F85GripperConfig, RobotiQGripper
2431

25-
gripper = RobotiQGripper('<YOUR_SERIAL_NUMBER>')
32+
gripper = RobotiQGripper(RobotiQ2F85GripperConfig(serial_number="<YOUR_SERIAL_NUMBER>"))
2633
gripper.reset()
2734
gripper.shut()
2835
print(gripper.get_normalized_width())

docs/extensions/rcs_so101.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,12 @@ This extension provides support for the SO101 robot in RCS.
55
## Installation
66

77
```shell
8-
pip install -ve extensions/rcs_so101
8+
pip install rcs-so101
9+
```
10+
11+
For local development from this repository:
12+
13+
```shell
14+
pip install -ve . --no-build-isolation
15+
pip install -ve extensions/rcs_so101 --no-build-isolation
916
```

docs/extensions/rcs_tacto.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,12 @@ This extension provides integration with the [Tacto](https://github.com/facebook
55
## Installation
66

77
```shell
8+
pip install rcs-tacto
9+
```
10+
11+
For local development:
12+
13+
```shell
14+
pip install -ve . --no-build-isolation
815
pip install -ve extensions/rcs_tacto
916
```

0 commit comments

Comments
 (0)