1 #ifndef KINEMATICS_ROSROBOTDRIVERHANDLER_HPP 2 #define KINEMATICS_ROSROBOTDRIVERHANDLER_HPP 5 #include <unordered_map> 8 #include "std_msgs/UInt64.h" 9 #include "RobotDriverHandler.hpp" 10 #include <Kinematics/Matrix.hpp> 92 void sub_move_complete(
const std_msgs::UInt64::ConstPtr&
id);
97 std::function<void()> move_complete_handler;
107 ros::Subscriber id_subscriber;
112 ros::ServiceClient driver_stop;
117 ros::ServiceClient driver_add;
122 std::atomic<Matrix<double, 5, 1>> current_arm_state;
128 std::uint64_t id_to_wait = std::numeric_limits<std::uint64_t>::max();
134 std::unordered_map<std::uint64_t, Matrix<double, 5, 1>> moves_being_handled;
RobotDriverHandler()
Constructor.
void stop()
Stop the robot arm.
RobotDriverHandler & operator=(const RobotDriverHandler &rdh)=delete
Copy assignment operator, deleted.
void set_move_complete_handler(const std::function< void()> &handler)
Set the move complete handler.
virtual ~RobotDriverHandler()=default
Destructor.
Concrete handle on the robot using the ROS interface.
Definition: RobotDriverHandler.hpp:19
Matrix< double, 5, 1 > get_arm_state() const noexcept
Get the current arm position.
void move(const std::vector< Matrix< double, 5, 1 >> &path, double speed)
Move the robot arm along a path.
Create a matrix with numerical values.
Definition: Matrix.hpp:22