|
Fawkes API
Fawkes Development Version
|
Class containing information about all manipulator motors. More...
#include <>>

Public Member Functions | |
| OpenRaveManipulator (unsigned int count, unsigned int count_device) | |
| Constructor. | |
| virtual | ~OpenRaveManipulator () |
| Destructor. | |
| virtual void | add_motor (unsigned int number, unsigned int number_device) |
| Adds a motor to the list(vector) of motors. | |
| template<typename T_from , typename T_to > | |
| void | angles_or_to_device (std::vector< T_from > &from, std::vector< T_to > &to) const |
| Transform OpenRAVE motor angles to real device angles. | |
| template<typename T > | |
| void | get_angles (std::vector< T > &to) const |
| Get motor angles of OpenRAVE model. | |
| template<typename T > | |
| void | get_angles_device (std::vector< T > &to) const |
| Get motor angles of real device. | |
| template<typename T > | |
| void | set_angles (std::vector< T > &angles) |
| Set motor angles of OpenRAVE model. | |
| template<typename T > | |
| void | set_angles_device (std::vector< T > &angles) |
| Set motor angles of real device. | |
Protected Member Functions | |
| virtual float | angle_OR_to_device (unsigned int number, float angle) const |
| Transform single OpenRAVE motor angle to real device angle. | |
| virtual float | angle_device_to_OR (unsigned int number, float angle) const |
| Transform single device motor angle to OpenRAVE angle. | |
Protected Attributes | |
| std::vector< motor_t > | __motors |
| vector of motors | |
| unsigned int | __cnt |
| number of motors on OpenRAVE model | |
| unsigned int | __cnt_device |
| number of motors on real device | |
Class containing information about all manipulator motors.
Definition at line 35 of file manipulator.h.
| fawkes::OpenRaveManipulator::OpenRaveManipulator | ( | unsigned int | count, |
| unsigned int | count_device | ||
| ) |
Constructor.
| count | number of motors of OpenRAVE model |
| count_device | number of motors of real device |
Definition at line 41 of file manipulator.cpp.
|
virtual |
Destructor.
Definition at line 48 of file manipulator.cpp.
|
virtual |
Adds a motor to the list(vector) of motors.
| number | motor number in OpenRAVE |
| number_device | motor number of real device |
Definition at line 58 of file manipulator.cpp.
References __motors, fawkes::motor_t::angle, fawkes::motor_t::no, and fawkes::motor_t::no_device.
|
protectedvirtual |
Transform single device motor angle to OpenRAVE angle.
| number | motor number of real device |
| angle | motor angle of real device |
Definition at line 95 of file manipulator.cpp.
|
protectedvirtual |
Transform single OpenRAVE motor angle to real device angle.
| number | motor number of real device |
| angle | motor angle of OpenRAVE model |
Definition at line 82 of file manipulator.cpp.
| void fawkes::OpenRaveManipulator::angles_or_to_device | ( | std::vector< T_from > & | from, |
| std::vector< T_to > & | to | ||
| ) | const |
Transform OpenRAVE motor angles to real device angles.
| from | motor angles of OpenRAVE model |
| to | motor angles of real device |
Definition at line 94 of file manipulator.h.
Referenced by fawkes::OpenRaveRobot::get_trajectory_device().
| void fawkes::OpenRaveManipulator::get_angles | ( | std::vector< T > & | to | ) | const |
Get motor angles of OpenRAVE model.
| to | target tvector of angles |
Definition at line 67 of file manipulator.h.
Referenced by fawkes::OpenRaveRobot::calibrate(), fawkes::OpenRaveRobot::get_planner_params(), fawkes::OpenRaveEnvironment::run_planner(), and fawkes::OpenRaveRobot::update_model().
| void fawkes::OpenRaveManipulator::get_angles_device | ( | std::vector< T > & | to | ) | const |
Get motor angles of real device.
| to | target vector of angles |
Definition at line 80 of file manipulator.h.
| void fawkes::OpenRaveManipulator::set_angles | ( | std::vector< T > & | angles | ) |
Set motor angles of OpenRAVE model.
| angles | motor angles |
Definition at line 110 of file manipulator.h.
Referenced by fawkes::OpenRaveRobot::set_target_angles(), fawkes::OpenRaveRobot::set_target_ikparam(), and fawkes::OpenRaveRobot::update_manipulator().
| void fawkes::OpenRaveManipulator::set_angles_device | ( | std::vector< T > & | angles | ) |
Set motor angles of real device.
| angles | motor angles |
Definition at line 122 of file manipulator.h.
|
protected |
number of motors on OpenRAVE model
Definition at line 56 of file manipulator.h.
|
protected |
number of motors on real device
Definition at line 57 of file manipulator.h.
|
protected |