Basic RT components and utilities  315.12.1

Overview

This component reads sensors and write commands to actuators.

Hardware dependent parts and common parts

RobotHardware includes two parts: hardware dependent part as iob.h and common part as RobotHardware. When developper want to apply hrpsys-base to new robots or simulators, write hardware dependent part as iob.h and link it with common part RobotHardware.

Sensor data ports

Sensor data ports are based on VRML information and sensor values are assumed to be represented in the sensor local frames.

implementation_idRobotHardware
categoryexample

Data Ports

Input Ports

port namedata typeunitdescription
qRefRTC::TimedDoubleSeq[rad]joint angle commands

Output Ports

Output data ports for gyros, accelerometers and force/torque sensors are created automatically based on information read from a VRML model.

port namedata typeunitdescription
qRTC::TimedDoubleSeq[rad]measured joint angles
servoStateRTC::TimedLongSeq[rad]status of joint servo
emergencySignalRTC::TimedLong[rad]Emergency signal
name of gyro defined in a VRML model, such as "gyrometer"RTC::TimedAngularVelocity3D[rad/s]angular velocities in the sensor frame
name of accelerometer defined in a VRML model, such as "gsensor"RTC::TimedAcceleration3D[rad/(s^2)]acceleration in the sensor frame
name of force/torque sensor defined in a VRML model, such as "rhsensor"RTC::TimedDoubleSeq[N],[Nm]force/torque in the sensor frame

Service Ports

Service Providers

port nameinterface nameservice typeIDLdescription
RobotHardwareServiceservice0RobotHardwareServiceOpenHRP::RobotHardwareService

Service Consumers

N/A

Configuration Variables

keytypeunitdescription
isDemoModeint1:demo mode, 0:otherwise. When the robot is in demo mode, joint servo error limits and force limits are not checked.
servoErrorLimitstd::vector<double>[rad]joint servo error limits. If any servo error exceeds its limit, all joint servos are turned off. When 0 is set, servo error is not checked
fzLimitRatiodouble<double>force limit. If force in Z direction exceeds this limit, all joint servos are turned off. The limit is given by a ratio to weight of the robot.

Configuration File

keytypeunitdescription
modelstd::stringURL of a VRML model
sensor_id.right_leg_force_sensorunsigned intID of a force/torque sensor whose Z force is checked to detect emergency
sensor_id.leg_leg_force_sensorunsigned intID of a force/torque sensor whose Z force is checked to detect emergency