Classes | Namespaces | Files | Defines | Functions
Sensors

A set of sensor classes, functions, and definitions. More...

Classes

class  CameraSensor
 Basic camera sensor This sensor is used for simulating standard monocular cameras. More...
class  ContactSensor
 Contact sensor. More...
class  DepthCameraSensor
 Basic camera sensor This sensor is used for simulating standard monocular cameras. More...
class  ImuSensor
 An IMU sensor. More...
class  IRSensor
 Sensor with one or more rays. More...
class  RaySensor
 Sensor with one or more rays. More...
class  Sensor
 Base class for sensors. More...
class  SensorFactory
 The sensor factory; the class is just for namespacing purposes. More...
class  SensorManager
 Class to manage and update all sensors. More...

Namespaces

namespace  gazebo::sensors
 

Sensors namespace.


Files

file  SensorTypes.hh
 

Forward declarations and typedefs for sensors.


Defines

#define GZ_REGISTER_STATIC_SENSOR(name, classname)
 Static sensor registration macro.

Functions

bool load ()
 Load the sensor library.
std::string create_sensor (sdf::ElementPtr _elem, const std::string &_parentName)
void run_once (bool force=true)
 Run the sensor generation one step.
void run ()
 Run sensor generation continuously. This is a blocking call.
void stop ()
 Stop the sensor generation loop.
bool init ()
bool fini ()
bool remove_sensors ()
SensorPtr get_sensor (const std::string &_name)
 Get a sensor by name.

Detailed Description

A set of sensor classes, functions, and definitions.


Define Documentation

#define GZ_REGISTER_STATIC_SENSOR (   name,
  classname 
)
Value:
Sensor *New##classname() \
  { \
    return new gazebo::sensors::classname(); \
  } \
  void Register##classname() \
  {\
    SensorFactory::RegisterSensor( name, New##classname);\
  }

Static sensor registration macro.

Use this macro to register sensors with the server.

Parameters:
nameSensor type name, as it appears in the world file.
classnameC++ class name for the sensor.

Function Documentation

void gazebo::sensors::run_once ( bool  force = true)

Run the sensor generation one step.

Parameters:
force,:If true, all sensors are forced to update. Otherwise a sensor will update based on it's Hz rate.