18 #ifndef COB_BASE_VELOCITY_SMOOTHER_H 19 #define COB_BASE_VELOCITY_SMOOTHER_H 29 #include <boost/circular_buffer.hpp> 30 #include <boost/bind.hpp> 34 #include <geometry_msgs/Twist.h> 36 #include <std_msgs/String.h> 84 boost::circular_buffer<geometry_msgs::Twist>
cb_;
85 boost::circular_buffer<geometry_msgs::Twist>
cb_out_;
106 bool IsEqual(geometry_msgs::Twist msg1, geometry_msgs::Twist msg2);
109 bool IsZeroMsg(geometry_msgs::Twist cmd_vel);
void limitAcceleration(ros::Time now, geometry_msgs::Twist &cmd_vel)
double max_delay_between_commands_
geometry_msgs::Twist zero_values_
bool circBuffOutOfDate(ros::Time now)
geometry_msgs::Twist setOutput(ros::Time now, geometry_msgs::Twist cmd_vel)
ros::Subscriber geometry_msgs_sub_
void reviseCircBuff(ros::Time now, geometry_msgs::Twist cmd_vel)
bool get_new_msg_received()
void set_new_msg_received(bool received)
bool IsEqual(geometry_msgs::Twist msg1, geometry_msgs::Twist msg2)
bool IsZeroMsg(geometry_msgs::Twist cmd_vel)
boost::circular_buffer< geometry_msgs::Twist > cb_out_
cob_base_velocity_smoother()
boost::circular_buffer< geometry_msgs::Twist > cb_
geometry_msgs::Twist sub_msg_
~cob_base_velocity_smoother()
void geometryCallback(const geometry_msgs::Twist::ConstPtr &cmd_vel)
boost::circular_buffer< ros::Time > cb_time_
double stop_delay_after_no_sub_