1 #ifndef KINEMATICS_OBJECT_MOVE_HANDLER_HPP 2 #define KINEMATICS_OBJECT_MOVE_HANDLER_HPP 6 #include "HLR/ObjectMoveAction.h" 7 #include "HLR/ObjectMoveStart.h" 10 #include "RobotController.hpp" 75 HLR::ObjectMoveStart::Response& res);
87 HLR::ObjectMoveAction::Response& res);
99 HLR::ObjectMoveAction::Response& res);
111 HLR::ObjectMoveAction::Response& res);
120 std::uint8_t convert_controller_state_to_ros_msg(
129 std::uint8_t convert_error_to_ros_msg(
ArmError err)
const noexcept;
139 ros::Publisher state_pub;
144 ros::Publisher error_pub;
149 ros::ServiceServer service_move_start;
154 ros::ServiceServer service_move_stop;
159 ros::ServiceServer service_move_continue;
164 ros::ServiceServer service_move_cancel;
virtual ~ObjectMoveHandler()=default
Destructor.
bool object_move_start(HLR::ObjectMoveStart::Request &req, HLR::ObjectMoveStart::Response &res)
Start moving (grabbing) the specified cup based on ID If already moving ID is added to queue and exec...
bool object_move_stop(HLR::ObjectMoveAction::Request &req, HLR::ObjectMoveAction::Response &res)
Callback that is executed when the movement needs to stop Stop can be used when a movement is perform...
bool object_move_continue(HLR::ObjectMoveAction::Request &req, HLR::ObjectMoveAction::Response &res)
Callback that is executed when the moevement needs to be continue Continue can be used when the movem...
ObjectMoveHandler(RobotController &controller)
Constructor.
RobotControllerState
The current state of the robot controller.
Definition: RobotController.hpp:61
This class contains the main logic of the robotic arm. It handles the calculation of robotic path and...
Definition: RobotController.hpp:123
Interface to send commands to the Kinematics component Executes actions on the robotarm based in the ...
Definition: ObjectMoveHandler.hpp:25
ArmError
Enum containing possible reasons for the robot arm not being able to succesfully execute the specifie...
Definition: RobotController.hpp:98
ObjectMoveHandler & operator=(const ObjectMoveHandler &omh)=delete
Copy assignment operator, deleted.
bool object_move_cancel(HLR::ObjectMoveAction::Request &req, HLR::ObjectMoveAction::Response &res)
Callback that is executed when the movement needs to be canceled Cup will be placed back on original ...