Helper class derived from KinBodyStateSaver to additionaly save robot information.
More...
#include <robot.h>
Helper class derived from KinBodyStateSaver to additionaly save robot information.
- Examples:
- ormulticontrol.cpp, orplanning_door.cpp, orplanning_module.cpp, orplanning_multirobot.cpp, orplanning_planner.cpp, and ortrajectory.cpp.
Definition at line 453 of file robot.h.
OpenRAVE::RobotBase::RobotStateSaver::~RobotStateSaver |
( |
| ) |
|
|
virtual |
void OpenRAVE::RobotBase::RobotStateSaver::Release |
( |
| ) |
|
|
virtual |
release the body state. _pbody will not get restored on destruction
After this call, it will still be possible to use Restore.
Definition at line 144 of file robot.cpp.
void OpenRAVE::RobotBase::RobotStateSaver::Restore |
( |
boost::shared_ptr< RobotBase > |
robot = boost::shared_ptr<RobotBase>() | ) |
|
|
virtual |
restore the state
- Parameters
-
robot | if set, will attempt to restore the stored state to the passed in body, otherwise will restore it for the original body. |
- Exceptions
-
openrave_exception | if the passed in body is not compatible with the saved state, will throw |
Definition at line 138 of file robot.cpp.
std::vector<UserDataPtr> OpenRAVE::RobotBase::RobotStateSaver::_vGrabbedBodies |
|
protected |
int OpenRAVE::RobotBase::RobotStateSaver::affinedofs |
|
protected |
Vector OpenRAVE::RobotBase::RobotStateSaver::rotationaxis |
|
protected |
std::vector<int> OpenRAVE::RobotBase::RobotStateSaver::vactivedofs |
|
protected |
The documentation for this class was generated from the following files: