2 #ifndef CANOPEN_MOTOR_NODE_ROBOT_LAYER_H_ 3 #define CANOPEN_MOTOR_NODE_ROBOT_LAYER_H_ 5 #include <boost/unordered_map.hpp> 10 #include <urdf/urdfdom_compatibility.h> 34 typedef boost::unordered_map< std::string, HandleLayerBaseSharedPtr >
HandleMap;
42 typedef boost::unordered_map<std::string, SwitchContainer>
SwitchMap;
51 urdf::JointConstSharedPtr
getJoint(
const std::string &n)
const {
return urdf_.getJoint(n); }
55 virtual bool prepareSwitch(
const std::list<hardware_interface::ControllerInfo> &start_list,
const std::list<hardware_interface::ControllerInfo> &stop_list);
56 virtual void doSwitch(
const std::list<hardware_interface::ControllerInfo> &start_list,
const std::list<hardware_interface::ControllerInfo> &stop_list);
hardware_interface::PositionJointInterface pos_interface_
urdf::JointConstSharedPtr getJoint(const std::string &n) const
void add(const std::string &name, HandleLayerBaseSharedPtr handle)
HandleLayerBaseSharedPtr handle
boost::unordered_map< std::string, SwitchContainer > SwitchMap
void enforce(const ros::Duration &period, bool reset)
joint_limits_interface::EffortJointSaturationInterface eff_saturation_interface_
virtual void handleInit(canopen::LayerStatus &status)
hardware_interface::JointStateInterface state_interface_
boost::shared_ptr< RobotLayer > RobotLayerSharedPtr
boost::unordered_map< std::string, HandleLayerBaseSharedPtr > HandleMap
canopen::MotorBase::OperationMode mode
joint_limits_interface::PositionJointSoftLimitsInterface pos_soft_limits_interface_
joint_limits_interface::EffortJointSoftLimitsInterface eff_soft_limits_interface_
boost::atomic< bool > first_init_
hardware_interface::VelocityJointInterface vel_interface_
hardware_interface::EffortJointInterface eff_interface_
joint_limits_interface::VelocityJointSoftLimitsInterface vel_soft_limits_interface_
virtual void doSwitch(const std::list< hardware_interface::ControllerInfo > &start_list, const std::list< hardware_interface::ControllerInfo > &stop_list)
std::vector< SwitchData > SwitchContainer
joint_limits_interface::PositionJointSaturationInterface pos_saturation_interface_
virtual bool prepareSwitch(const std::list< hardware_interface::ControllerInfo > &start_list, const std::list< hardware_interface::ControllerInfo > &stop_list)
RobotLayer(ros::NodeHandle nh)
void stopControllers(const std::vector< std::string > controllers)
joint_limits_interface::VelocityJointSaturationInterface vel_saturation_interface_