11 : nh_(n), cmd_vel_topic_(BasicMoveControllerDefaultParam::
PUB_CMD_VEL), odometry_topic_(BasicMoveControllerDefaultParam::
SUB_ODOM)
64 geometry_msgs::Twist vel;
73 geometry_msgs::Point pos0 =
odometry_.pose.pose.position;
82 geometry_msgs::Point pos0 =
odometry_.pose.pose.position;
106 ROS_DEBUG(
"%f %f %f", angle, yaw0, yaw1);
void backward(double distance)
double wrapAngle(double a)
BasicMoveController(ros::NodeHandle &n)
const std::string SUB_ODOM
void publish(const boost::shared_ptr< M > &message) const
const std::string PUB_CMD_VEL
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
static double getYaw(const Quaternion &bt_q)
void moveAt(double v, double w, double t)
double distance2D(double ax, double ay, double bx, double by)
void turnCounterClockwise()
std::string cmd_vel_topic_
void processOdometry(const nav_msgs::Odometry::ConstPtr &msg)
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
std::string odometry_topic_
virtual ~BasicMoveController()
void forward(double distance)
ros::Subscriber sub_odom_
void spinCounterClockwise()
nav_msgs::Odometry odometry_
ros::Publisher pub_cmd_vel_