49 joint_position_(6, 0.0), joint_velocity_(6, 0.0), joint_effort_(6, 0.0), joint_position_command_(6, 0.0), joint_velocity_command_(
50 6, 0.0), joint_effort_command_(6, 0.0), joint_names_(6), rsi_initial_joint_positions_(6, 0.0), rsi_joint_position_corrections_(
51 6, 0.0), ipoc_(0), n_dof_(6)
60 ROS_ERROR(
"Cannot find required parameter 'controller_joint_names' " 61 "on the parameter server.");
62 throw std::runtime_error(
"Cannot find required parameter " 63 "'controller_joint_names' on the parameter server.");
67 for (std::size_t i = 0; i <
n_dof_; ++i)
107 for (std::size_t i = 0; i <
n_dof_; ++i)
120 for (std::size_t i = 0; i <
n_dof_; ++i)
147 for (std::size_t i = 0; i <
n_dof_; ++i)
164 const std::string param_addr =
"rsi/listen_address";
165 const std::string param_port =
"rsi/listen_port";
174 std::string msg =
"Failed to get RSI listen address or listen port from" 175 " parameter server (looking for '" + param_addr +
"' and '" + param_port +
"')";
177 throw std::runtime_error(msg);
void registerInterface(T *iface)
std::vector< double > positions
std::vector< double > rsi_initial_joint_positions_
static const double DEG2RAD
std::vector< double > joint_velocity_
std::vector< double > rsi_joint_position_corrections_
#define ROS_INFO_STREAM_NAMED(name, args)
static const double RAD2DEG
std::vector< std::string > joint_names_
std::unique_ptr< UDPServer > server_
hardware_interface::PositionJointInterface position_joint_interface_
std::unique_ptr< realtime_tools::RealtimePublisher< std_msgs::String > > rt_rsi_pub_
std::vector< double > joint_effort_
void registerHandle(const JointStateHandle &handle)
JointStateHandle getHandle(const std::string &name)
bool getParam(const std::string &key, std::string &s) const
std::vector< double > joint_position_
std::vector< double > joint_position_command_
#define ROS_ERROR_STREAM(args)
hardware_interface::JointStateInterface joint_state_interface_
bool read(const ros::Time time, const ros::Duration period)
bool write(const ros::Time time, const ros::Duration period)
std::vector< double > initial_positions