6 #include <geometry_msgs/Pose.h> 7 #include <cpswarm_msgs/OutOfBounds.h> 8 #include <cpswarm_msgs/GetSector.h> 34 double bearing (geometry_msgs::Pose p)
const;
42 geometry_msgs::Pose compute_goal (
double distance,
double direction)
const;
51 geometry_msgs::Pose compute_goal (geometry_msgs::Pose start,
double distance,
double direction)
const;
58 double dist (geometry_msgs::Pose p)
const;
66 double dist (geometry_msgs::Pose p1, geometry_msgs::Pose p2)
const;
72 geometry_msgs::Pose get_pose ()
const;
78 double get_yaw ()
const;
85 bool move (geometry_msgs::Pose pose);
92 bool occupied (geometry_msgs::Pose pose);
99 bool out_of_bounds (geometry_msgs::Pose pose);
107 double get_yaw (geometry_msgs::Pose pose)
const;
114 bool reached (geometry_msgs::Pose goal);
120 void pose_callback (
const geometry_msgs::PoseStamped::ConstPtr& msg);
double goal_timeout
The time in seconds that the CPS is given time to reach a destination before giving up...
NodeHandle nh
A node handle for the main ROS node.
Rate * rate
The loop rate object for running the behavior control loops at a specific frequency.
bool pose_valid
Whether a valid position has been received.
geometry_msgs::Pose pose
Current position of the CPS.
double goal_tolerance
The distance that the CPS can be away from a goal while still being considered to have reached that g...
A class to provide position related functionalities.
Publisher pose_pub
Publisher for sending the goal position of the CPS to the position controller in the abstraction libr...
ServiceClient occupied_sector_client
Service client for determining the sector occupied by obstacles.
Subscriber pose_sub
Subscriber for the position of the CPS.
ServiceClient out_of_bounds_client
Service client for determining whether the goal is out of the area bounds.