1 #ifndef TUW_MULTI_ROBOT_CTRL_LOCAL_MULTI_ROBOT_CONTROLLER_NODE_H 2 #define TUW_MULTI_ROBOT_CTRL_LOCAL_MULTI_ROBOT_CONTROLLER_NODE_H 6 #include <geometry_msgs/Twist.h> 7 #include <nav_msgs/Odometry.h> 8 #include <nav_msgs/Path.h> 9 #include <std_msgs/String.h> 10 #include <tuw_multi_robot_msgs/Route.h> 11 #include <tuw_multi_robot_msgs/RobotInfo.h> 29 std::unique_ptr<ros::Rate>
rate_;
73 #endif // TUW_MULTI_ROBOT_CTRL_LOCAL_MULTI_ROBOT_CONTROLLER_NODE_H LocalMultiRobotControllerNode(ros::NodeHandle &n)
Construct a new Multi Segment Controller Node object.
void publishRobotInfo()
publish the robot info of each robot
std::string robot_prefix_
std::string topic_cmdVel_
int findRobotId(std::string robot_name)
void subCtrlCb(const ros::MessageEvent< std_msgs::String const > &_event, int _topic)
std::vector< ros::Subscriber > subOdom_
void subRouteCb(const ros::MessageEvent< tuw_multi_robot_msgs::Route const > &_event, int _topic)
std::vector< ros::Publisher > pubCmdVel_
std::vector< ros::Subscriber > subCtrl_
ros::Publisher pubRobotInfo_
std::vector< bool > active_robots
std::vector< ros::Subscriber > subRoute_
std::unique_ptr< ros::Rate > rate_
void subOdomCb(const ros::MessageEvent< nav_msgs::Odometry const > &_event, int _topic)
ros::NodeHandle n_
Node handler to the root node.
std::vector< std::string > robot_names_
std::vector< geometry_msgs::PoseWithCovariance > robot_pose_
std::string topic_robot_info_
ros::NodeHandle n_param_
Node handler to the current node.
std::vector< SegmentController > controller
std::vector< float > robot_radius_