31 #ifndef ROBOT_CONTROLLERS_INTERFACE_JOINT_HANDLE_H 32 #define ROBOT_CONTROLLERS_INTERFACE_JOINT_HANDLE_H 61 virtual void setPosition(
double position,
double velocity,
double effort) = 0;
68 virtual void setVelocity(
double velocity,
double effort) = 0;
74 virtual void setEffort(
double effort) = 0;
101 virtual std::string
getName() = 0;
104 virtual void reset() = 0;
116 #endif // ROBOT_CONTROLLERS_INTERFACE_JOINT_HANDLE_H virtual double getPositionMin()=0
Get the minimum valid position command.
virtual double getEffortMax()=0
Get the maximum effort command.
virtual bool isContinuous()=0
Is this joint continuous (has no position limits).
virtual ~JointHandle()
Ensure proper cleanup with virtual destructor.
virtual void reset()=0
Reset the command.
virtual double getVelocity()=0
Get the velocity of the joint in rad/sec or meters/sec.
virtual void setVelocity(double velocity, double effort)=0
Set a velocity command for this joint.
virtual void setPosition(double position, double velocity, double effort)=0
Set a position command for this joint.
boost::shared_ptr< JointHandle > JointHandlePtr
Base class for a joint handle. This will be implemented for each type of robot.
virtual double getVelocityMax()=0
Get the maximum velocity command.
virtual double getPositionMax()=0
Get the maximum valid position command.
virtual std::string getName()=0
Get the name of this joint.
virtual double getPosition()=0
Get the position of the joint in radians or meters.
virtual void setEffort(double effort)=0
Set an effort command for this joint.
JointHandle & operator=(const JointHandle &)
virtual double getEffort()=0
Get applied effort of a joint in Nm or N.