You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/prpy/tsr/README.md
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -98,6 +98,27 @@ Defining ```sample_goal=True``` tells the planner to apply the constraint only t
98
98
```python
99
99
ipython> traj = robot.PlanToTSR([tsrchain])
100
100
```
101
+
### Example: Planning from a single TSR
102
+
Now imagine we wish to generate a plan that starts from any point in the grasp TSR and plans to a defined configuration, ```config```. The following code can be used to do this:
### Example: Apply a TSR constraint across a full trajectory
112
+
In the refrigerator opening example, the TSR Chain defined a constraint on the motion of the end-effector that should be applied over the whole trajectory. We defined:
Here, the caller must be careful to ensure that ```config``` meets the constraint defined by the TSR.
101
122
102
123
### Example: Planning to a set of TSRs
103
124
Now imagine we had to TSRs, ```grasp1_tsr``` and ```grasp2_tsr``` the each defined a set of valid configurations for grasping. We can ask the planner to generate a plan to any configuration that meets either the ```grasp1_tsr``` or the ```grasp2_tsr``` constraint in the following way:
0 commit comments