2 #ifndef __SERVOCONTROLLER_SERVICE_H__ 3 #define __SERVOCONTROLLER_SERVICE_H__ 5 #include "hrpsys/idl/ServoControllerService.hh" 12 :
public virtual POA_OpenHRP::ServoControllerService,
13 public virtual PortableServer::RefCountServantBase
26 CORBA::Boolean setJointAngle(
const CORBA::Short
id, CORBA::Double jv, CORBA::Double tm);
27 CORBA::Boolean setJointAngles(
const OpenHRP::ServoControllerService::dSequence& jvs, CORBA::Double tm);
28 CORBA::Boolean getJointAngle(
const CORBA::Short
id, CORBA::Double &jv);
29 CORBA::Boolean getJointAngles(OpenHRP::ServoControllerService::dSequence_out jvs);
31 CORBA::Boolean addJointGroup(
const char* gname,
const OpenHRP::ServoControllerService::iSequence& ids);
32 CORBA::Boolean removeJointGroup(
const char* gname);
33 CORBA::Boolean setJointAnglesOfGroup(
const char *gname,
const OpenHRP::ServoControllerService::dSequence& jvs, CORBA::Double tm);
35 CORBA::Boolean setMaxTorque(
const CORBA::Short
id,
const CORBA::Short percentage);
36 CORBA::Boolean setReset(
const CORBA::Short
id);
37 CORBA::Boolean getDuration(
const CORBA::Short
id, CORBA::Double &duration);
38 CORBA::Boolean getSpeed(
const CORBA::Short
id, CORBA::Double &speed);
39 CORBA::Boolean getMaxTorque(
const CORBA::Short
id, CORBA::Short &percentage);
40 CORBA::Boolean getTorque(
const CORBA::Short
id, CORBA::Double &torque);
41 CORBA::Boolean getTemperature(
const CORBA::Short
id, CORBA::Double &
temperature);
42 CORBA::Boolean getVoltage(
const CORBA::Short
id, CORBA::Double &voltage);
ServoController * m_servo
def servoOff(joint="all")
static std::vector< int > servo
sample RT component which has one data input port and one data output port