32 #ifndef MOTOMAN_DRIVER_INDUSTRIAL_ROBOT_CLIENT_ROBOT_STATE_INTERFACE_H 33 #define MOTOMAN_DRIVER_INDUSTRIAL_ROBOT_CLIENT_ROBOT_STATE_INTERFACE_H 50 namespace robot_state_interface
72 class RobotStateInterface
89 bool init(std::string default_ip =
"",
int default_port = StandardSocketPorts::STATE,
bool legacy_mode =
false);
98 bool init(SmplMsgConnection* connection);
110 bool init(SmplMsgConnection* connection, std::vector<std::string>& joint_names);
122 bool init(SmplMsgConnection* connection, std::map<int, RobotGroup> robot_groups);
154 std::map<int, RobotGroup> get_robot_groups()
156 return this->robot_groups_;
165 void add_handler(MessageHandler* handler,
bool allow_replace =
true)
173 JointFeedbackRelayHandler default_joint_feedback_handler_;
174 JointFeedbackExRelayHandler default_joint_feedback_ex_handler_;
181 std::map<int, RobotGroup> robot_groups_;
190 #endif // MOTOMAN_DRIVER_INDUSTRIAL_ROBOT_CLIENT_ROBOT_STATE_INTERFACE_H Message handler that relays joint positions (converts simple message types to ROS message types and p...
RobotStatusRelayHandler default_robot_status_handler_
bool init(std::string default_ip="", int default_port=StandardSocketPorts::STATE)
SmplMsgConnection * get_connection()
TcpClient default_tcp_connection_
SmplMsgConnection * connection_
bool add(industrial::message_handler::MessageHandler *handler, bool allow_replace=false)
void add_handler(MessageHandler *handler, bool allow_replace=true)
std::vector< std::string > get_joint_names()
Message handler that relays joint positions (converts simple message types to ROS message types and p...
std::vector< std::string > joint_names_
MessageManager * get_manager()
JointRelayHandler default_joint_handler_
Message handler that relays joint positions (converts simple message types to ROS message types and p...