Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collision avoidance tutorial fix #62

Merged
merged 2 commits into from
Jul 19, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions docs/collision_avoidance_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,13 @@ class CollisionArmTable(RobotCollisionModel):
limits['lift']=[None,table_height+safety_margin]
return limits
```
Note that if the file is not created within the stretch_body directory then the following
command should be run in order to add the working directory to the PYTHONPATH env , This can also be added to our bashrc to permanently edit the path:

```bash
>>$ export PYTHONPATH=$PYTHONPATH:/<path_to_modules>
```


Next we configure RobotCollision to use our CollisionArmTable model in `stretch_re1_user_yaml`:

Expand All @@ -194,6 +201,19 @@ collision_arm_table:
py_class_name: 'CollisionArmTable'
py_module_name: 'collision_arm_table'

```
However if we create our custom class within the 'stretch_body' directoy the yaml file should be configured as follows:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo


```yaml
robot_collision:
models:
- collision_arm_table

collision_arm_table:
enabled: 1
py_class_name: 'CollisionArmTable'
py_module_name: 'stretch_body.collision_arm_table'
hello-adamc marked this conversation as resolved.
Show resolved Hide resolved

```

Finally, test out the model by driving the arm and lift around using the XBox teleoperation tool:
Expand Down