WB-Toolbox
6.0.0
ASimulinkToolboxforWholeBodyControl
|
Class for handling model and robot resources. More...
#include <RobotInterface.h>
Class for handling model and robot resources.
This class is a wrapper of yarp::dev::RemoteControlBoardRemapper and iDynTree::KinDynComputations. By filling information in a wbt::Configuration object, it provides a simple initialization and combined usage of these two resources.
Classes | |
class | impl |
Public Member Functions | |
RobotInterface ()=delete | |
RobotInterface (const wbt::base::Configuration &config) | |
~RobotInterface () | |
const wbt::base::Configuration & | getConfiguration () const |
Get the stored configuration. More... | |
const std::shared_ptr< iDynTree::KinDynComputations > | getKinDynComputations () |
Get the object to operate on the configured model. More... | |
template<typename T > | |
bool | getInterface (T *&interface) |
Get a Yarp interface. More... | |
template<> | |
bool | getInterface (yarp::dev::IControlMode *&interface) |
template<> | |
bool | getInterface (yarp::dev::IPositionControl *&interface) |
template<> | |
bool | getInterface (yarp::dev::IPositionDirect *&interface) |
template<> | |
bool | getInterface (yarp::dev::IVelocityControl *&interface) |
template<> | |
bool | getInterface (yarp::dev::ITorqueControl *&interface) |
template<> | |
bool | getInterface (yarp::dev::IPWMControl *&interface) |
template<> | |
bool | getInterface (yarp::dev::ICurrentControl *&interface) |
template<> | |
bool | getInterface (yarp::dev::IEncoders *&interface) |
template<> | |
bool | getInterface (yarp::dev::IMotorEncoders *&interface) |
template<> | |
bool | getInterface (yarp::dev::IControlLimits *&interface) |
template<> | |
bool | getInterface (yarp::dev::IPidControl *&interface) |
Private Attributes | |
std::unique_ptr< impl > | pImpl |
|
delete |
RobotInterface::RobotInterface | ( | const wbt::base::Configuration & | config | ) |
RobotInterface::~RobotInterface | ( | ) |
const Configuration & RobotInterface::getConfiguration | ( | ) | const |
Get the stored configuration.
bool wbt::base::RobotInterface::getInterface | ( | T *& | interface | ) |
Get a Yarp interface.
The interface is lazy-evaluated. The handling of the memory is not responsibility of the caller. It is handled internally.
[out] | interface | The object that will contain the pointer to the interface. |
bool RobotInterface::getInterface | ( | yarp::dev::IControlLimits *& | interface | ) |
bool RobotInterface::getInterface | ( | yarp::dev::IControlMode *& | interface | ) |
bool RobotInterface::getInterface | ( | yarp::dev::ICurrentControl *& | interface | ) |
bool RobotInterface::getInterface | ( | yarp::dev::IEncoders *& | interface | ) |
bool RobotInterface::getInterface | ( | yarp::dev::IMotorEncoders *& | interface | ) |
bool RobotInterface::getInterface | ( | yarp::dev::IPidControl *& | interface | ) |
bool RobotInterface::getInterface | ( | yarp::dev::IPositionControl *& | interface | ) |
bool RobotInterface::getInterface | ( | yarp::dev::IPositionDirect *& | interface | ) |
bool RobotInterface::getInterface | ( | yarp::dev::IPWMControl *& | interface | ) |
bool RobotInterface::getInterface | ( | yarp::dev::ITorqueControl *& | interface | ) |
bool RobotInterface::getInterface | ( | yarp::dev::IVelocityControl *& | interface | ) |
const std::shared_ptr< iDynTree::KinDynComputations > RobotInterface::getKinDynComputations | ( | ) |
Get the object to operate on the configured model.
shared_ptr
to the KinDynComputations object.
|
private |