Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F74140473
OncillaKnee.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Jul 26, 02:25
Size
2 KB
Mime Type
text/x-c++
Expires
Sun, Jul 28, 02:25 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
19338386
Attached To
R6622 liboncilla
OncillaKnee.h
View Options
#pragma once
#include <iostream>
#include <boost/shared_ptr.hpp>
#include <rci/nodes/ResourceNode.h>
#include <rci/nodes/Controlled.h>
#include <rci/nodes/Configurable.h>
#include <rci/nodes/Sensing.h>
#include <rci/dto/JointAngles.h>
namespace cca {
namespace rci {
namespace driver {
class OncillaKnee;
typedef boost::shared_ptr<OncillaKnee> OncillaKneePtr;
/**
* Node class, representing the knee node of the quadruped robot.
* @todo In case of simulation, this node can also sense the power consumption.
*/
class OncillaKnee: public rci::ResourceNode,
public rci::Controlled,
public rci::Sensing,
public rci::PositionControlled,
public rci::PositionSensing,
public rci::VelocityControlled,
public rci::TorqueControlled,
public rci::ImpedanceControlled {
public:
OncillaKnee(std::string name = "Oncilla Knee");
virtual ~OncillaKnee();
/**
* Returns, if controller is converged.
* @return True, if controller is converged after last command.
*/
bool isConverged() const;
/**
* Commanding a joint position.
* @param position Position command
* @return Return, if successfull. (e.g. not exceeding joint limits)
* @todo Check for correct control mode
*/
bool setJointPosition(JointAnglesPtr position);
/**
* Returns current joint position.
* @return Current joint position
*/
virtual JointAnglesPtr getJointPosition() const;
/**
* Commanding a joint velocity.
* @param position Velocity command
* @return Return, if successfull. (e.g. not exceeding joint limits)
* @todo Check for correct control mode
*/
bool setJointVelocity(JointVelocitiesPtr vel);
/**
* Commanding a joint velocity.
* @param position Velocity command
* @return Return, if successfull. (e.g. not exceeding joint limits)
* @todo Check for correct control mode
*/
bool setJointImpedance(JointImpedancePtr imped);
/**
* Commanding a joint torque.
* @param position Torque command
* @return Return, if successfull. (e.g. not exceeding joint limits)
* @todo Check for correct control mode
*/
virtual bool setJointTorque(cca::rci::JointTorquesPtr torques);
/**
* Returns latest position command. Note, that this is the latest valid
* commanded position. If the position command exceeds limits and is
* therefore rejected, it ..
*/
virtual JointAnglesPtr getLastPositionCommand() const;
/**
* Print
*/
std::string print() const;
};
}
}
}
Event Timeline
Log In to Comment