![]() |
NimbRo ROS Soccer Package
|
Real robot interface. More...
#include <robotinterface.h>
Inherits HardwareInterface.
Inherited by nimbro_op_interface::DummyInterface.
Public Member Functions | |
RobotInterface () | |
virtual | ~RobotInterface () |
virtual bool | init (robotcontrol::RobotModel *model) |
virtual void | deinit () |
virtual boost::shared_ptr < robotcontrol::Joint > | createJoint (const std::string &name) |
virtual bool | sendJointTargets () |
virtual bool | readJointStates () |
virtual bool | setStiffness (float torque) |
virtual void | getDiagnostics (robotcontrol::DiagnosticsPtr ptr) |
Protected Attributes | |
robotcontrol::RobotModel * | m_model |
The robot model. | |
std::vector< cm730::BRData > | m_servoData |
Bulk read buffer for servo feedback. | |
cm730::BRBoard | m_boardData |
Bulk read buffer for CM730 feedback (e.g. IMU) | |
std::string | m_robotNameStr |
Robot name. | |
std::string | m_robotTypeStr |
Robot type. | |
Real robot interface.
Connects to a NimbRo-OP robot directly connected to the machine.
Parameters on the config_server (under the robotcontrol group):
Name | Meaning |
---|---|
useModel | Enable the servo model for command generation |
effortSlopeLimit | Maximum delta of the joint effort in a cycle |
joints/X/type | Actuator type of joint X |
joints/X/id | Address of joint X on the Dynamixel bus |
joints/X/invert | Invert the joint direction |
offsets/X | Offset (in servo ticks) of joint X |
The RobotInterface also advertises a single service called read_offsets which resets the joint offsets so that the current measured robot pose becomes the zero pose. This is useful for initial calibration (with a relaxed robot) before fine-tuning the offsets.
nimbro_op_interface::RobotInterface::RobotInterface | ( | ) |
RobotInterface constructor.
|
virtual |
RobotInterface destructor.
|
virtual |
Factory method for DXLJoint structs.
|
virtual |
Deinitialisation function.
|
virtual |
Reports the battery voltage (mean of all servo voltages) and the maximum temperature measured in the statistics callback over all servos.
|
virtual |
Initialize the robot interface and connect to the robot. It is assumed that createJoint()
has already been called for all our joints.
|
virtual |
Read joint states and other data from the CM730.