18 #ifndef OROCOSRTTARMDRIVERINTERFACE_H_ 19 #define OROCOSRTTARMDRIVERINTERFACE_H_ 21 #include <rtt/TaskContext.hpp> 22 #include <rtt/Command.hpp> 23 #include <rtt/Ports.hpp> 24 #include <rtt/Method.hpp> 47 set_position_inport(
"SetPositionPort"),
48 set_velocity_inport(
"SetVelocityPort"),
49 current_position_outport(
"CurrentPositionPort"),
50 current_velocity_outport(
"CurrentVelocityPort"),
51 setMaxVelocity(
"setMaxVelocity",
54 setMaxVelocityFloat(
"setMaxVelocityFloat",
57 setMaxAcceleration(
"setMaxAcceleration",
60 setMaxAccelerationFloat(
"setMaxAccelerationFloat",
64 this->ports()->addEventPort(&set_position_inport);
65 this->ports()->addEventPort(&set_velocity_inport);
66 this->ports()->addPort(¤t_position_outport);
67 this->ports()->addPort(¤t_velocity_outport);
69 this->methods()->addMethod( &setMaxVelocity,
70 "Setting maximal velocity of joints.",
"Jointd",
"maximal velocity in rad per second");
71 this->methods()->addMethod( &setMaxVelocityFloat,
72 "Setting maximal velocity of joints.",
"float",
"maximal velocity in rad per second");
73 this->methods()->addMethod( &setMaxAcceleration,
74 "Setting maximal acceleration of joints.",
"Jointd",
"maximal acceleration in rad per second squared");
75 this->methods()->addMethod( &setMaxAccelerationFloat,
76 "Setting maximal acceleration of joints.",
"float",
"maximal acceleration in rad per second squared");
82 virtual void setMaxVelocityF(
Jointd radpersec) = 0;
83 virtual void setMaxVelocityFloatF(
float radpersec) = 0;
84 virtual void setMaxAccelerationF(
Jointd radpersec) = 0;
85 virtual void setMaxAccelerationFloatF(
float radpersec) = 0;
Method< void(float)> setMaxAccelerationFloat
~OrocosRTTArmDriverInterface()
ReadDataPort< Jointd > set_velocity_inport
ReadDataPort< Jointd > set_position_inport
Method< void(Jointd)> setMaxAcceleration
OrocosRTTArmDriverInterface(std::string name)
Method< void(float)> setMaxVelocityFloat
WriteDataPort< Jointd > current_position_outport
WriteDataPort< Jointd > current_velocity_outport
Method< void(Jointd)> setMaxVelocity