2 #include <hrpModel/Sensor.h> 9 m_qCmdIn(
"qCmd", m_qCmd),
10 m_dqCmdIn(
"dqCmd", m_dqCmd),
11 m_ddqCmdIn(
"ddqCmd", m_ddqCmd),
12 m_posOut(
"pos", m_pos),
13 m_rpyOut(
"rpy", m_rpy),
57 for (
unsigned int i=0;
i<
m_rate.size();
i++){
66 for (
unsigned int i=0;
i<
m_acc.size();
i++){
150 m_pos.data.x = root->
p[0];
151 m_pos.data.y = root->
p[1];
152 m_pos.data.z = root->
p[2];
153 state.basePose.position =
m_pos.data;
156 m_rpy.data.r = rpy[0];
157 m_rpy.data.p = rpy[1];
158 m_rpy.data.y = rpy[2];
159 state.basePose.orientation =
m_rpy.data;
161 if (root->
jointType == Link::FREE_JOINT){
167 for(
int id = 0;
id < n; ++
id){
174 for(
int id=0;
id < n; ++
id){
182 for(
int id=0;
id < n; ++
id){
void output(OpenHRP::RobotState &state)
std::vector< RTC::TimedDoubleSeq > m_force
RTC::InPort< RTC::TimedDoubleSeq > m_tauIn
RTC::OutPort< RTC::TimedPoint3D > m_posOut
void setVector3(const Vector3 &v3, V &v, size_t top=0)
RTC::InPort< RTC::TimedDoubleSeq > m_dqCmdIn
unsigned int numSensors(int sensorType) const
RTC::TimedDoubleSeq m_dqCmd
bool addOutPort(const char *name, OutPortBase &outport)
void createPorts(RTC::DataFlowComponentBase *comp)
RTC::InPort< RTC::TimedDoubleSeq > m_qCmdIn
RTC::TimedDoubleSeq m_tau
RTC::InPort< RTC::TimedDoubleSeq > m_ddqCmdIn
RTC::TimedOrientation3D m_rpy
std::vector< RTC::OutPort< RTC::TimedAngularVelocity3D > * > m_rateOut
std::vector< RTC::TimedAcceleration3D > m_acc
std::vector< RTC::OutPort< RTC::TimedDoubleSeq > * > m_forceOut
RTC::OutPort< RTC::TimedOrientation3D > m_rpyOut
Link * joint(int id) const
HRP_UTIL_EXPORT Vector3 rpyFromRot(const Matrix33 &m)
unsigned int numJoints() const
virtual bool write(DataType &value)
RTC::OutPort< RTC::TimedDoubleSeq > m_qOut
std::vector< RTC::OutPort< RTC::TimedAcceleration3D > * > m_accOut
bool addInPort(const char *name, InPortBase &inport)
std::vector< RTC::TimedAngularVelocity3D > m_rate
Sensor * sensor(int sensorType, int sensorId) const
RTC::TimedDoubleSeq m_qCmd
RTC::TimedDoubleSeq m_ddqCmd