![]() |
RCL - RoboCLuedo
v1.0
Francesco Ganci - S4143910 - Experimental Robotics Lab - Assignment 1
|
A simple service: choose randomly a room to reach. More...
#include "ros/ros.h"
#include "robocluedo_msgs/RandomRoom.h"
#include <vector>
#include <string>
#include <random>
#include <fstream>
Go to the source code of this file.
Macros | |
#define | PATH_PARAMETER_SERVER_WHERE "cluedo_path_where" |
#define | SERVICE_RANDOM_ROOM "/random_room" |
#define | OUTLOG std::cout << "[cluedo_random_room] " |
#define | LOGSQUARE(str) "[" << str << "] " |
Functions | |
bool | ImportNamesOfRooms (const std::string &path) |
import names of the rooms from file More... | |
std::string | Choose () |
get randomly the name of one room from the list rooms . More... | |
bool | ChooseRoomRandom (robocluedo_msgs::RandomRoom::Request &empty, robocluedo_msgs::RandomRoom::Response &room) |
implementation of service SERVICE_RANDOM_ROOM More... | |
int | main (int argc, char *argv[]) |
ROS node main - cluedo_random_room. More... | |
Variables | |
std::vector< std::string > | rooms |
the set of rooms More... | |
A simple service: choose randomly a room to reach.
Description:
The node implements a service which returns a room, randomly choosen among the available ones, to reach.
UML component
(See RoboCLuedo – COMP – UML Components Diagram the overal architecture, for further informations)
Services:
Parameters:
Definition in file cluedo_random_room.cpp.