10 #include "hrpsys/util/VectorConvert.h" 17 "implementation_id",
"Joystick2PanTiltAngles",
18 "type_name",
"Joystick2PanTiltAngles",
19 "description",
"joystick output to velocity converter",
20 "version", HRPSYS_PACKAGE_VERSION,
22 "category",
"example",
23 "activity_type",
"DataFlowComponent",
26 "lang_type",
"compile",
28 "conf.default.debugLevel",
"0",
29 "conf.default.axesIds",
"0,1,2",
30 "conf.default.scales",
"1.0,1.0,1.0",
31 "conf.default.neutrals",
"0.0,0.0,0.0",
39 m_axesIn(
"axes", m_axes),
40 m_anglesOut(
"angles", m_angles),
81 for (
unsigned int i=0;
i<
m_axes.data.length();
i++){
124 std::cout <<
m_profile.instance_name<<
": onExecute(" << ec_id <<
")" 133 printf(
"pan/tilt command: %5.2f %5.2f",
185 RTC::Create<Joystick2PanTiltAngles>,
186 RTC::Delete<Joystick2PanTiltAngles>);
ComponentProfile m_profile
png_infop png_charpp int png_charpp profile
joystick out to velocity converter
InPort< TimedFloatSeq > m_axesIn
static const char * joystick2velocity_spec[]
bool addOutPort(const char *name, OutPortBase &outport)
Joystick2PanTiltAngles(RTC::Manager *manager)
Constructor.
virtual ~Joystick2PanTiltAngles()
Destructor.
void Joystick2PanTiltAnglesInit(RTC::Manager *manager)
ExecutionContextHandle_t UniqueId
bool bindParameter(const char *param_name, VarType &var, const char *def_val, bool(*trans)(VarType &, const char *)=coil::stringTo)
std::vector< double > m_scales
std::vector< double > m_neutrals
virtual bool write(DataType &value)
virtual RTC::ReturnCode_t onInitialize()
std::vector< unsigned int > m_axesIds
bool addInPort(const char *name, InPortBase &inport)
virtual RTC::ReturnCode_t onDeactivated(RTC::UniqueId ec_id)
bool registerFactory(coil::Properties &profile, RtcNewFunc new_func, RtcDeleteFunc delete_func)
virtual RTC::ReturnCode_t onExecute(RTC::UniqueId ec_id)
virtual RTC::ReturnCode_t onActivated(RTC::UniqueId ec_id)
OutPort< PanTiltAngles > m_anglesOut