#include <create_parking_spots.h>
Public Member Functions | |
CreateParkingSpots () | |
Constructor This starts the server, waits for param server and create clickable parking spots. | |
Private Member Functions | |
visualization_msgs::InteractiveMarker | createParkingSpot (std::string frame_id) |
bool | isNavGoal (std::string link_name) |
void | onClick (const visualization_msgs::InteractiveMarkerFeedbackConstPtr &f) |
Private Attributes | |
MoveBaseClient | client_ |
uses move base client to set nav goals | |
interactive_markers::InteractiveMarkerServer | server_ |
creates marker server for clickable parking spots |
Definition at line 34 of file create_parking_spots.h.
Constructor This starts the server, waits for param server and create clickable parking spots.
Definition at line 17 of file create_parking_spots.cpp.
visualization_msgs::InteractiveMarker CreateParkingSpots::createParkingSpot | ( | std::string | frame_id | ) | [private] |
/brief Creates an interactive marker for the given link
frame_id | the frame id, or link name, to be used to create the marker |
Definition at line 107 of file create_parking_spots.cpp.
bool CreateParkingSpots::isNavGoal | ( | std::string | link_name | ) | [private] |
/brief Check if a given link name ends with nav_goal, and should therefore have a parknig spot made at its location
link_name | the frame id or name of the link |
Definition at line 101 of file create_parking_spots.cpp.
void CreateParkingSpots::onClick | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | f | ) | [private] |
/brief Callback function for when marker is clicked. Sets move_base goal to carl
f | contains information about where the marker was clicked, if it was a press or release, and the marker pose |
Definition at line 64 of file create_parking_spots.cpp.
MoveBaseClient CreateParkingSpots::client_ [private] |
uses move base client to set nav goals
Definition at line 46 of file create_parking_spots.h.
creates marker server for clickable parking spots
Definition at line 48 of file create_parking_spots.h.