#include <ros/ros.h>#include <geometry_msgs/PoseStamped.h>#include <geometry_msgs/Twist.h>#include <nav_msgs/Odometry.h>#include <nav_msgs/OccupancyGrid.h>#include <tf/tf.h>#include <tf/transform_listener.h>#include <tf/message_filter.h>#include <message_filters/subscriber.h>#include <angles/angles.h>#include <visualization_msgs/Marker.h>#include <actionlib/server/simple_action_server.h>#include <move_base_msgs/MoveBaseAction.h>
Go to the source code of this file.
| Classes | |
| class | Robot | 
| Typedefs | |
| typedef actionlib::SimpleActionServer < move_base_msgs::MoveBaseAction > | MoveBaseActionServer | 
| typedef enum _SimpleNavigationState | SimpleNavigationState | 
| Enumerations | |
| enum | _SimpleNavigationState { SN_STOPPED = 1, SN_MOVING = 2, SN_ROTATING = 3, SN_MOVING_AS = 4, SN_ROTATING_AS = 5, SN_STOPPED = 1, SN_MOVING = 2, SN_ROTATING = 3, SN_MOVING_AS = 4, SN_ROTATING_AS = 5 } | 
| Functions | |
| void | asCallback (const move_base_msgs::MoveBaseGoalConstPtr &move_base_goal) | 
| double | calculateVelocities (double current_x, double current_y, double current_orientation, double goal_x, double goal_y, double *linear_velocity, double *angular_velocity) | 
| void | displayGoal (double goal_x, double goal_y) | 
| void | goalReceived (const geometry_msgs::PoseStamped::ConstPtr &msg) | 
| int | main (int argc, char **argv) | 
| void | mapCallback (const nav_msgs::OccupancyGrid::ConstPtr &msg) | 
| void | odomCallback (int index, const boost::shared_ptr< const nav_msgs::Odometry > &msg) | 
| void | publishVelocities (double linear_velocity, double angular_velocity) | 
| Variables | |
| double | alpha | 
| double | angular_threshold | 
| MoveBaseActionServer * | as | 
| double | attraction_coefficient | 
| ros::Publisher * | cmd_vel_pub_ptr | 
| ros::Duration | delay | 
| double | distance_travelled | 
| std::string | global_frame_id | 
| ros::Duration | goal_timeout | 
| double | goal_tolerance | 
| double | in_place_angular_velocity | 
| nav_msgs::OccupancyGrid | map | 
| ros::Publisher * | marker_pub_ptr | 
| double | max_distance | 
| double | max_linear_velocity | 
| int | me | 
| double | min_linear_velocity | 
| ros::NodeHandle * | n_ptr | 
| double | rate | 
| double | repulsion_coefficient_obstacles | 
| double | repulsion_coefficient_robots | 
| double | repulsion_threshold_obstacles | 
| double | repulsion_threshold_robots | 
| std::vector< Robot > | robots | 
| bool | rotate_in_place | 
| int | simple_goal = 0 | 
| SimpleNavigationState | state | 
| tf::TransformListener * | tf_listener | 
| bool | visualization | 
| typedef actionlib::SimpleActionServer<move_base_msgs::MoveBaseAction> MoveBaseActionServer | 
Definition at line 54 of file multi_move_base_simple.cpp.
| typedef enum _SimpleNavigationState SimpleNavigationState | 
| SN_STOPPED | |
| SN_MOVING | |
| SN_ROTATING | |
| SN_MOVING_AS | |
| SN_ROTATING_AS | |
| SN_STOPPED | |
| SN_MOVING | |
| SN_ROTATING | |
| SN_MOVING_AS | |
| SN_ROTATING_AS | 
Definition at line 65 of file multi_move_base_simple.cpp.
| void asCallback | ( | const move_base_msgs::MoveBaseGoalConstPtr & | move_base_goal | ) | 
Definition at line 395 of file multi_move_base_simple.cpp.
| double calculateVelocities | ( | double | current_x, | 
| double | current_y, | ||
| double | current_orientation, | ||
| double | goal_x, | ||
| double | goal_y, | ||
| double * | linear_velocity, | ||
| double * | angular_velocity | ||
| ) | 
Definition at line 149 of file multi_move_base_simple.cpp.
| void displayGoal | ( | double | goal_x, | 
| double | goal_y | ||
| ) | 
Definition at line 249 of file multi_move_base_simple.cpp.
| void goalReceived | ( | const geometry_msgs::PoseStamped::ConstPtr & | msg | ) | 
Definition at line 301 of file multi_move_base_simple.cpp.
| int main | ( | int | argc, | 
| char ** | argv | ||
| ) | 
Definition at line 524 of file multi_move_base_simple.cpp.
| void mapCallback | ( | const nav_msgs::OccupancyGrid::ConstPtr & | msg | ) | 
Definition at line 519 of file multi_move_base_simple.cpp.
| void odomCallback | ( | int | index, | 
| const boost::shared_ptr< const nav_msgs::Odometry > & | msg | ||
| ) | 
Definition at line 494 of file multi_move_base_simple.cpp.
| void publishVelocities | ( | double | linear_velocity, | 
| double | angular_velocity | ||
| ) | 
Definition at line 290 of file multi_move_base_simple.cpp.
| double alpha | 
Definition at line 89 of file multi_move_base_simple.cpp.
| double angular_threshold | 
Definition at line 94 of file multi_move_base_simple.cpp.
Definition at line 56 of file multi_move_base_simple.cpp.
| double attraction_coefficient | 
Definition at line 90 of file multi_move_base_simple.cpp.
Definition at line 59 of file multi_move_base_simple.cpp.
Definition at line 97 of file multi_move_base_simple.cpp.
| double distance_travelled | 
Definition at line 81 of file multi_move_base_simple.cpp.
| std::string global_frame_id | 
Definition at line 84 of file multi_move_base_simple.cpp.
Definition at line 99 of file multi_move_base_simple.cpp.
| double goal_tolerance | 
Definition at line 93 of file multi_move_base_simple.cpp.
| double in_place_angular_velocity | 
Definition at line 86 of file multi_move_base_simple.cpp.
| nav_msgs::OccupancyGrid map | 
Definition at line 62 of file multi_move_base_simple.cpp.
Definition at line 60 of file multi_move_base_simple.cpp.
| double max_distance | 
Definition at line 98 of file multi_move_base_simple.cpp.
| double max_linear_velocity | 
Definition at line 87 of file multi_move_base_simple.cpp.
| int me | 
Definition at line 145 of file multi_move_base_simple.cpp.
| double min_linear_velocity | 
Definition at line 88 of file multi_move_base_simple.cpp.
Definition at line 58 of file multi_move_base_simple.cpp.
| double rate | 
Definition at line 85 of file multi_move_base_simple.cpp.
Definition at line 92 of file multi_move_base_simple.cpp.
| double repulsion_coefficient_robots | 
Definition at line 91 of file multi_move_base_simple.cpp.
Definition at line 96 of file multi_move_base_simple.cpp.
| double repulsion_threshold_robots | 
Definition at line 95 of file multi_move_base_simple.cpp.
Definition at line 143 of file multi_move_base_simple.cpp.
| bool rotate_in_place | 
Definition at line 147 of file multi_move_base_simple.cpp.
| int simple_goal = 0 | 
Definition at line 103 of file multi_move_base_simple.cpp.
Definition at line 76 of file multi_move_base_simple.cpp.
Definition at line 79 of file multi_move_base_simple.cpp.
| bool visualization | 
Definition at line 101 of file multi_move_base_simple.cpp.