28 #ifndef VESC_DRIVER_VESC_DRIVER_H_ 29 #define VESC_DRIVER_VESC_DRIVER_H_ 35 #include <std_msgs/Float64.h> 36 #include <boost/optional.hpp> 60 const boost::optional<double>& min_lower = boost::optional<double>(),
61 const boost::optional<double>& max_upper = boost::optional<double>());
62 double clip(
double value);
102 void brakeCallback(
const std_msgs::Float64::ConstPtr& brake);
103 void speedCallback(
const std_msgs::Float64::ConstPtr& speed);
105 void servoCallback(
const std_msgs::Float64::ConstPtr& servo);
110 #endif // VESC_DRIVER_VESC_DRIVER_H_ CommandLimit current_limit_
void dutyCycleCallback(const std_msgs::Float64::ConstPtr &duty_cycle)
int fw_version_major_
firmware major version reported by vesc
ros::Subscriber servo_sub_
CommandLimit speed_limit_
ros::Subscriber brake_sub_
void vescPacketCallback(const std::shared_ptr< VescPacket const > &packet)
boost::optional< double > lower
void servoCallback(const std_msgs::Float64::ConstPtr &servo)
CommandLimit position_limit_
driver_mode_t driver_mode_
driver state machine mode (state)
void positionCallback(const std_msgs::Float64::ConstPtr &position)
ros::Subscriber position_sub_
void currentCallback(const std_msgs::Float64::ConstPtr ¤t)
CommandLimit duty_cycle_limit_
int fw_version_minor_
firmware minor version reported by vesc
void brakeCallback(const std_msgs::Float64::ConstPtr &brake)
CommandLimit brake_limit_
ros::Publisher state_pub_
ros::Subscriber current_sub_
ros::Publisher servo_sensor_pub_
void speedCallback(const std_msgs::Float64::ConstPtr &speed)
VescDriver(ros::NodeHandle nh, ros::NodeHandle private_nh)
ros::Subscriber duty_cycle_sub_
boost::optional< double > upper
CommandLimit(const ros::NodeHandle &nh, const std::string &str, const boost::optional< double > &min_lower=boost::optional< double >(), const boost::optional< double > &max_upper=boost::optional< double >())
CommandLimit servo_limit_
void timerCallback(const ros::TimerEvent &event)
void vescErrorCallback(const std::string &error)
double clip(double value)
ros::Subscriber speed_sub_