10 #ifndef SERVO_CONTROLLER_H 11 #define SERVO_CONTROLLER_H 13 #include <rtm/idl/BasicDataType.hh> 14 #include <rtm/idl/ExtendedDataTypes.hh> 16 #include <rtm/DataFlowComponentBase.h> 20 #include <rtm/idl/BasicDataTypeSkel.h> 21 #include <rtm/idl/ExtendedDataTypesSkel.h> 57 virtual RTC::ReturnCode_t onInitialize();
61 virtual RTC::ReturnCode_t onFinalize();
103 bool setJointAngle(
short id,
double angle,
double tm);
104 bool setJointAngles(
const OpenHRP::ServoControllerService::dSequence angles,
double tm);
105 bool getJointAngle(
short id,
double &angle);
106 bool getJointAngles(OpenHRP::ServoControllerService::dSequence_out &angles);
107 bool addJointGroup(
const char *gname, const ::OpenHRP::ServoControllerService::iSequence ids);
108 bool removeJointGroup(
const char *gname);
109 bool setJointAnglesOfGroup(
const char *gname, const ::OpenHRP::ServoControllerService::dSequence angles,
double tm);
110 bool setMaxTorque(
short id,
short percentage);
111 bool setReset(
short id);
112 bool getDuration(
short id,
double &duration);
113 bool getSpeed(
short id,
double &speed);
114 bool getMaxTorque(
short id,
short &percentage);
115 bool getTorque(
short id,
double &torque);
116 bool getTemperature(
short id,
double &
temperature);
117 bool getVoltage(
short id,
double &voltage);
168 #endif // SERVO_CONTROLLER_H
std::vector< int > servo_id
std::vector< double > servo_dir
std::vector< double > servo_offset
void ServoControllerInit(RTC::Manager *manager)
ServoControllerService_impl m_service0
std::map< std::string, std::vector< int > > joint_groups
RTC::CorbaPort m_ServoControllerServicePort
ExecutionContextHandle_t UniqueId
def servoOff(joint="all")
sample RT component which has one data input port and one data output port