26 #include "../example/srh_syntouch_controllers.hpp" 33 #include <std_msgs/Float64.h> 40 SrhSyntouchController::SrhSyntouchController()
54 std::string robot_state_name;
55 node_.
param<std::string>(
"robot_state_name", robot_state_name,
"unique_robot_hw");
59 robot_ = robot->getHandle(robot_state_name).getState();
63 ROS_ERROR_STREAM(
"Could not find robot state: " << robot_state_name <<
" Not loading the controller. " <<
82 ROS_ERROR(
"SrhMixedPositionVelocityController could not find joint named \"%s\"\n",
147 double commanded_effort = 0.0;
virtual const char * what() const
ros_ethercat_model::JointState * joint_state_
boost::scoped_ptr< realtime_tools::RealtimePublisher< sr_robot_msgs::JointControllerState > > controller_state_publisher_
virtual void update(const ros::Time &time, const ros::Duration &period)
Issues commands to the joint. Should be called at regular intervals.
ros::Subscriber sub_command_
ros_ethercat_model::RobotState * robot_
sr_actuator::SrMotorActuator * actuator_
bool init(ros_ethercat_model::RobotStateInterface *robot, ros::NodeHandle &n)
virtual void starting(const ros::Time &time)
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val) const
const std::string & getNamespace() const
#define ROS_WARN_STREAM(args)
#define ROS_DEBUG_STREAM(args)
std::vector< tactiles::AllTactileData > * tactiles_
bool getParam(const std::string &key, std::string &s) const
#define ROS_ERROR_STREAM(args)
#define PLUGINLIB_EXPORT_CLASS(class_type, base_class_type)
SrMotorActuatorState motor_state_
void after_init()
call this function at the end of the init function in the inheriting classes.