28 #ifndef FSROBO_R_DRIVER_ROBOT_SERVICE_INTERFACE_H 29 #define FSROBO_R_DRIVER_ROBOT_SERVICE_INTERFACE_H 38 #include "fsrobo_r_msgs/SetIO.h" 40 #include "fsrobo_r_msgs/SetPosture.h" 41 #include "fsrobo_r_msgs/GetPosture.h" 43 #include "fsrobo_r_msgs/SetToolOffset.h" 47 namespace robot_service_interface
81 virtual bool init(std::string default_ip =
"",
int default_port = StandardSocketPorts::IO);
114 bool setIOCB(fsrobo_r_msgs::SetIO::Request &req, fsrobo_r_msgs::SetIO::Response &res);
123 bool setPostureCB(fsrobo_r_msgs::SetPosture::Request &req, fsrobo_r_msgs::SetPosture::Response &res);
132 bool getPostureCB(fsrobo_r_msgs::GetPosture::Request &req, fsrobo_r_msgs::GetPosture::Response &res);
141 bool setToolOffsetCB(fsrobo_r_msgs::SetToolOffset::Request &req, fsrobo_r_msgs::SetToolOffset::Response &res);
bool getPostureCB(fsrobo_r_msgs::GetPosture::Request &req, fsrobo_r_msgs::GetPosture::Response &res)
Callback function registered to ROS get_posture service. Transform message into SimpleMessage objects...
~FSRoboRRobotServiceInterface()
ros::ServiceServer srv_set_posture
Message handler that relays robot service to the robot controller.
FSRoboRRobotServiceInterface()
Default constructor.
bool setIOCB(fsrobo_r_msgs::SetIO::Request &req, fsrobo_r_msgs::SetIO::Response &res)
Callback function registered to ROS set_io service. Transform message into SimpleMessage objects and ...
virtual void run()
Begin processing messages and publishing topics.
bool setPostureCB(fsrobo_r_msgs::SetPosture::Request &req, fsrobo_r_msgs::SetPosture::Response &res)
Callback function registered to ROS set_posture service. Transform message into SimpleMessage objects...
ROSCPP_DECL void spin(Spinner &spinner)
ros::ServiceServer srv_get_posture
Wrapper class around FSRobo-R-specific io control commands.
Wrapper class around FSRobo-R-specific configuration commands.
ros::ServiceServer srv_set_tool_offset
RobotConfigurator robot_configurator_
TcpClient default_tcp_connection_
virtual bool init(std::string default_ip="", int default_port=StandardSocketPorts::IO)
Initialize robot connection using default method.
ros::ServiceServer srv_set_io_
SmplMsgConnection * connection_
bool setToolOffsetCB(fsrobo_r_msgs::SetToolOffset::Request &req, fsrobo_r_msgs::SetToolOffset::Response &res)
Callback function registered to ROS set_tool_offset service. Transform message into SimpleMessage obj...