handle_robot.h
Go to the documentation of this file.
1 /******************************************************************************
2  STDR Simulator - Simple Two DImensional Robot Simulator
3  Copyright (C) 2013 STDR Simulator
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 3 of the License, or
7  (at your option) any later version.
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12  You should have received a copy of the GNU General Public License
13  along with this program; if not, write to the Free Software Foundation,
14  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15 
16  Authors :
17  * Manos Tsardoulias, etsardou@gmail.com
18  * Aris Thallas, aris.thallas@gmail.com
19  * Chris Zalidis, zalidis@gmail.com
20 ******************************************************************************/
21 
22 #include <ros/ros.h>
25 #include <stdr_msgs/RobotIndexedMsg.h>
26 #include <stdr_msgs/SpawnRobotAction.h>
27 #include <stdr_msgs/DeleteRobotAction.h>
28 #include <stdr_msgs/MoveRobot.h>
29 #include <stdr_robot/exceptions.h>
30 #include <geometry_msgs/Pose2D.h>
31 
32 #ifndef HANDLE_ROBOT_H
33 #define HANDLE_ROBOT_H
34 
39 namespace stdr_robot {
40 
45 
50  class HandleRobot {
51  //------------------------------------------------------------------------//
52  private:
53 
58 
59  //------------------------------------------------------------------------//
60  public:
61 
66  HandleRobot();
67 
73  stdr_msgs::RobotIndexedMsg spawnNewRobot(const stdr_msgs::RobotMsg msg);
74 
80  bool deleteRobot(const std::string& name);
81 
88  bool moveRobot(const std::string& name,
89  const geometry_msgs::Pose2D newPose);
90  };
91 }
92 
93 #endif
actionlib::SimpleActionClient< stdr_msgs::SpawnRobotAction > SpawnRobotClient
Definition: handle_robot.h:42
stdr_msgs::RobotIndexedMsg spawnNewRobot(const stdr_msgs::RobotMsg msg)
Spawns a new robot.
Handles the manipulation of robots (creation, deletion, move)
Definition: handle_robot.h:50
The main namespace for STDR Robot.
Definition: exceptions.h:27
actionlib::SimpleActionClient< stdr_msgs::DeleteRobotAction > DeleteRobotClient
Definition: handle_robot.h:44
DeleteRobotClient _deleteRobotClient
Definition: handle_robot.h:57
SpawnRobotClient _spawnRobotClient
< Action client for spawning robots
Definition: handle_robot.h:55
bool deleteRobot(const std::string &name)
Deletes a robot by frame_id.
bool moveRobot(const std::string &name, const geometry_msgs::Pose2D newPose)
Re-places a robot by frame_id.
HandleRobot()
Default constructor.


stdr_robot
Author(s): Manos Tsardoulias, Chris Zalidis, Aris Thallas
autogenerated on Mon Jun 10 2019 15:15:10