Scripting Joint Motion
Overview
Design Pattern
1. Create RobotClient
2. Startup RobotClient
3. Start control loop <100hz
4. For each loop
- Do a RobotClient pull_status
- Compute motion setpoints
- Command RobotClient motion
- Do a RobotClient push_command
5. Exit loop and stop RobotClientWhat can I control?
MOVE_BY
https://github.com/hello-robot/stretch4_body/blob/4be724431ea21c87d41bdf03f3cce36cd4ba4562/stretch4_body/robot/robot_client.py#L748-L768
MOVE_TO
SET_VELOCITY
https://github.com/hello-robot/stretch4_body/blob/main/stretch4_body/robot/robot_client.py#L775
Working with the EndOfArm
https://github.com/hello-robot/stretch4_body/blob/4be724431ea21c87d41bdf03f3cce36cd4ba4562/stretch4_body/robot/robot_client.py#L748-L768
Last updated
Was this helpful?
