dr_example.hh File Reference

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...
 

Detailed Description

Domain randomization example client headers.

Author
João Borrego : jsbruglie

Typedef Documentation

typedef gap::msgs::DRRequest DRRequest

Declaration for request message type.

Function Documentation

double getRandomDouble ( double  min,
double  max 
)

Get a random double in a given interval.

Value is sampled from uniform distribution

Parameters
minInterval lower bound
maxInterval upper bound
Returns
Random double
int getRandomInt ( int  min,
int  max 
)

Get a random integer in a given interval.

Value is sampled from uniform distribution

Parameters
minInterval lower bound
maxInterval upper bound
Returns
Random integer
void waitMs ( int  delay)
inline

Waits a given number of ms.

Parameters
delayAmount of ms to wait