1 #ifndef single_motor_controller_h
2 #define single_motor_controller_h
5 #include "std_msgs/Bool.h"
6 #include "std_msgs/Float32.h"
7 #include "sensor_msgs/JointState.h"
8 #include "std_msgs/Float64MultiArray.h"
46 const double &_percentage,
47 const double &_period,
48 const double &_max_travel,
ros::Subscriber ready_to_proceed_subscriber
void checkForNewMessages()
ros::Subscriber motor_confirmation_subscriber
virtual ~SingleMotorController()
bool initialStateReceived()
void readyToProceedCallback(const std_msgs::Bool &_msg)
ros::Subscriber set_goal_subscriber
void calculateSingleAxisTrajectory(const double &_percentage, const double &_period, const double &_max_travel, double &_x, double &_x_d, double &_x_dd)
void sendJointTorqueCommand()
ros::Subscriber keep_logging_subscriber
void sendJointPositionCommand()
std::unique_ptr< ros::NodeHandle > node_handle
void setPositionDirectly(double _joint_pos)
void setTorqueDirectly(double _torque)
ros::Publisher joint_command_publisher
ros::Subscriber motor_state_subscriber
void setVelocityDirectly(double _joint_vel)
ros::Publisher motor_gain_publisher
ros::Publisher log_motor_state_publisher
void keepLoggingCallback(const std_msgs::Bool &_msg)
void motorConfirmationCallback(const std_msgs::Bool &_msg)
SingleMotorController(double _publish_frequency, bool _use_position_control)
const double UNINITIALIZED_STATE
void motorStateCallback(const sensor_msgs::JointStatePtr &_msg)
void setGoalCallback(const std_msgs::Float32 &_msg)
ros::Publisher log_motor_reference_publisher
const double IDLE_COMMAND