forked from RobotLocomotion/drake
-
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.
Added some patches from Robin, which add a nice control UI for Visual…
…izers and let you tweak playback on the fly. Also, fixes a missing path in configure.m and a handful of other bugfixes. git-svn-id: https://svn.csail.mit.edu/locomotion/robotlib/trunk@4463 c9849af7-e679-4ec6-a44e-fc146a885bd3
- Loading branch information
mjp
committed
Nov 9, 2012
1 parent
570b56b
commit 37b3ea9
Showing
10 changed files
with
104 additions
and
45 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
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
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 |
---|---|---|
@@ -1,11 +1,15 @@ | ||
function runPassiveURDF | ||
% function runPassiveURDF | ||
% runs the passive dynamics with the rigid body backend (from URDF) | ||
|
||
p = PlanarRigidBodyManipulator('CompassGait.urdf'); | ||
xtraj = p.simulate([0 5]); | ||
m = PlanarRigidBodyModel('CompassGait.urdf'); | ||
p = TimeSteppingRigidBodyManipulator(m, 0.01); | ||
% p = CompassGaitPlant() | ||
% p.getInitialState() | ||
% xtraj = p.simulate([0 2], p.getInitialState); | ||
xtraj = p.simulate([0 2], p.getInitialState + [0 .1 0 pi/2 0 0 0 0]'); | ||
|
||
v=p.constructVisualizer(); | ||
v.axis = 2*[-1 1 -1 1]; | ||
v.playback_speed = .2; | ||
v.playback_speed = 1; | ||
v.playback(xtraj); | ||
|
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
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