openrave-yarp-plugins
|
Enables interacting with and OpenRAVE environment via YARP
First open a:
Then:
The equivalent Python script can be found at: ../../../examples/python/openraveYarpWorld.py
Now communicate via:
For instance, get help:
Get a list of information on the environment existing elements:
A world mk box/sbox (three params for size) (three params for pos)
example to create a dynamic box (an sbox
would be static), which is interesting if you activate Physics Engine ODE and Set Gravity -Z!
A world mk cyl/scyl (radius height) (three params for pos)
example to create a static cylinder:
A world mk sph/ssph (radius) (three params for pos)
example to create a static sphere:
A world mk file (fileName) (three params for pos) [four params for axis angle (deg)]]
example:
Now move the mug:
A world get (name)
example:
A world grab (robotName) (manipulatorName) (objName) 0/1
example (replace arm
for rightArm
if you are with teoSim
):
A world fk (robotName) (manipulatorName)
example: