ForwardKinematicsService_impl.cpp
Go to the documentation of this file.
2 #include "ForwardKinematics.h"
3 
5 {
6 }
7 
9 {
10 }
11 
12 
14 {
15  m_comp = i_comp;
16 }
17 
18 ::CORBA::Boolean ForwardKinematicsService_impl::selectBaseLink(const char* linkname)
19 {
20  return m_comp->selectBaseLink(linkname);
21 }
22 
23 
24 ::CORBA::Boolean ForwardKinematicsService_impl::getReferencePose(const char* linkname, RTC::TimedDoubleSeq_out pose)
25 {
26  char* frame_name = (char *)strrchr(linkname, ':');
27  if ( frame_name ) {
28  ((char *)linkname)[frame_name - linkname] = '\0'; // cut frame_name, linkname[strpos(':')] = 0x00
29  frame_name++; // skip ":"
30  }
31  return m_comp->getReferencePose(linkname, pose, frame_name);
32 }
33 ::CORBA::Boolean ForwardKinematicsService_impl::getCurrentPose(const char* linkname, RTC::TimedDoubleSeq_out pose)
34 {
35  char* frame_name = (char *)strrchr(linkname, ':');
36  if ( frame_name ) {
37  ((char *)linkname)[frame_name - linkname] = '\0'; // cut frame_name, linkname[strpos(':')] = 0x00
38  frame_name++; // skip ":"
39  }
40  return m_comp->getCurrentPose(linkname, pose, frame_name);
41 }
42 
43 ::CORBA::Boolean ForwardKinematicsService_impl::getRelativeCurrentPosition(const char* linknameFrom, const char *linknameTo, const OpenHRP::ForwardKinematicsService::position target, OpenHRP::ForwardKinematicsService::position result)
44 {
45  return m_comp->getRelativeCurrentPosition(linknameFrom, linknameTo, target, result);
46 }
null component
::CORBA::Boolean getReferencePose(const char *linkname, RTC::TimedDoubleSeq_out pose)
::CORBA::Boolean getCurrentPose(const char *linkname, RTC::TimedDoubleSeq_out pose)
::CORBA::Boolean getRelativeCurrentPosition(const char *linknameFrom, const char *linknameTo, const OpenHRP::ForwardKinematicsService::position target, OpenHRP::ForwardKinematicsService::position result)
::CORBA::Boolean getRelativeCurrentPosition(const char *linkname1, const char *linkname2, const OpenHRP::ForwardKinematicsService::position target, OpenHRP::ForwardKinematicsService::position result)
::CORBA::Boolean getReferencePose(const char *linkname, RTC::TimedDoubleSeq_out pose, const char *frame_name)
::CORBA::Boolean getCurrentPose(const char *linkname, RTC::TimedDoubleSeq_out pose, const char *frame_name)
::CORBA::Boolean selectBaseLink(const char *lnkname)
void setComp(ForwardKinematics *i_comp)
::CORBA::Boolean selectBaseLink(const char *linkname)
sample RT component which has one data input port and one data output port


hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Thu May 6 2021 02:41:49