|
openrave-yarp-plugins
|
Enables loading one or several YARP plugins in OpenRAVE, typically from ../../libraries/YarpPlugins/.
First open a:
There are 2 ways to invoke OpenraveYarpPluginLoader:
OpenraveYarpPluginLoader are parsed within its int main(const std::string& cmd) function. This main() function is a strange animal within OpenRAVE plugins as commented at #30, which is affected by several issues, namely #59 and #60.openravepy module.Use OpenraveYarpPluginLoader to replicate any example of ../../YarpPlugins/YarpOpenraveAnalogSensors.
The first example becomes (note that name and view parameters are no longer required):
The equivalent Python script can be found at: ../../../examples/python/openraveYarpPluginLoader-analogsensors.py
Then follow the commands of the first example.
Use OpenraveYarpPluginLoader to replicate any example of ../../YarpPlugins/YarpOpenraveControlBoard.
The first example becomes (note that name and view parameters are no longer required):
The equivalent Python script can be found at: ../../../examples/python/openraveYarpPluginLoader-controlboard.py
Then follow the commands of the first example.
Now you can even use allRobots and/or allManipulators (example using the environment loaded by OpenRAVE):
The equivalent Python script can be found at: ../../../examples/python/openraveYarpPluginLoader-controlboard-allManipulators.py
We can also do funky commands like the following, with concatenated env and several open commands:
Use OpenraveYarpPluginLoader to replicate any example of ../../YarpPlugins/YarpOpenraveGrabber.
The first example becomes (note that name and view parameters are no longer required, but here viewer is forced due to #48):
The equivalent Python script can be found at: ../../../examples/python/openraveYarpPluginLoader-grabber.py
Then follow the commands of the first example.
Use OpenraveYarpPluginLoader to replicate any example of ../../YarpPlugins/YarpOpenraveRGBDSensor.
The first example becomes (note that name and view parameters are no longer required, but here viewer and collision are forced due to #48 and #102 respectively):
The equivalent Python script can be found at: ../../../examples/python/openraveYarpPluginLoader-rgbdsensor.py
Then follow the commands of the first example.
Use OpenraveYarpPluginLoader to replicate any example of ../../YarpPlugins/YarpOpenraveRobotManager.
The first example becomes (note that name and view parameters are no longer required):
The equivalent Python script can be found at: ../../../examples/python/openraveYarpPluginLoader-robotmanager.py
Then follow the commands of the first example.
Here's a nice one-liner that enables both the commands of YarpOpenraveControlBoard and YarpOpenraveRGBDSensor: