Domain randomization example client headers. More...
#include <gazebo/gazebo_client.hh>#include <gazebo/gazebo_config.h>#include <gazebo/transport/transport.hh>#include <gazebo/msgs/msgs.hh>#include "dr_request.pb.h"#include "DRInterface.hh"#include <limits>#include <chrono>#include <thread>Go to the source code of this file.
Typedefs | |
| typedef gap::msgs::DRRequest | DRRequest |
| Declaration for request message type. More... | |
Functions | |
| int | getRandomInt (int min, int max) |
| Get a random integer in a given interval. More... | |
| double | getRandomDouble (double min, double max) |
| Get a random double in a given interval. More... | |
| void | waitMs (int delay) |
| Waits a given number of ms. More... | |
Domain randomization example client headers.
| typedef gap::msgs::DRRequest DRRequest |
Declaration for request message type.
| double getRandomDouble | ( | double | min, |
| double | max | ||
| ) |
Get a random double in a given interval.
Value is sampled from uniform distribution
| min | Interval lower bound |
| max | Interval upper bound |
| int getRandomInt | ( | int | min, |
| int | max | ||
| ) |
Get a random integer in a given interval.
Value is sampled from uniform distribution
| min | Interval lower bound |
| max | Interval upper bound |
|
inline |
Waits a given number of ms.
| delay | Amount of ms to wait |