##

SensorsIface.hh
Go to the documentation of this file.
/*
* Copyright (C) 2012 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#ifndef _GAZEBO_SENSORSIFACE_HH_
#define _GAZEBO_SENSORSIFACE_HH_
#include <string>
#include <sdf/sdf.hh>
#include "gazebo/sensors/SensorTypes.hh"
#include "gazebo/util/system.hh"
namespace gazebo
{
namespace sensors
{
GZ_SENSORS_VISIBLE
bool load();
GZ_SENSORS_VISIBLE
std::string create_sensor(sdf::ElementPtr _elem,
const std::string &_worldName, const std::string &_parentName,
uint32_t _parentId);
GZ_SENSORS_VISIBLE
void remove_sensor(const std::string &_sensorName);
GZ_SENSORS_VISIBLE
void run_once(bool _force = false);
GZ_SENSORS_VISIBLE
void run_threads();
GZ_SENSORS_VISIBLE
void stop();
GZ_SENSORS_VISIBLE
bool init();
GZ_SENSORS_VISIBLE
bool fini();
GZ_SENSORS_VISIBLE
bool remove_sensors();
GZ_SENSORS_VISIBLE
SensorPtr get_sensor(const std::string &_name);
GZ_SENSORS_VISIBLE
void disable();
GZ_SENSORS_VISIBLE
void enable();
GAZEBO_VISIBLE
bool running();
}
}
#endif
gazebo::sensors::SensorPtr
std::shared_ptr< Sensor > SensorPtr
Definition: SensorTypes.hh:64
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
gazebo::sensors::load
bool load()
Load the sensor library.
gazebo::sensors::fini
bool fini()
shutdown the sensor generation loop.
sensors
sensors
Definition: SensorManager.hh:35
gazebo::sensors::remove_sensor
void remove_sensor(const std::string &_sensorName)
Remove a sensor by name.
SensorTypes.hh
Forward declarations and typedefs for sensors.
gazebo::sensors::create_sensor
std::string create_sensor(sdf::ElementPtr _elem, const std::string &_worldName, const std::string &_parentName, uint32_t _parentId)
Create a sensor using SDF.
system.hh
gazebo::sensors::enable
void enable()
Enable sensors.
gazebo::sensors::run_threads
void run_threads()
Run sensors in a threads. This is a non-blocking call.
gazebo::sensors::init
bool init()
initialize the sensor generation loop.
gazebo::sensors::get_sensor
SensorPtr get_sensor(const std::string &_name)
Get a sensor using by name.
gazebo::sensors::disable
void disable()
Disable sensors.
gazebo::sensors::run_once
void run_once(bool _force=false)
Run the sensor generation one step.
gazebo::sensors::running
GAZEBO_VISIBLE bool running()
Return true if the manager is running.
gazebo::sensors::stop
void stop()
Stop the sensor generation loop.
GAZEBO_VISIBLE
#define GAZEBO_VISIBLE
Definition: system.hh:59
gazebo::sensors::remove_sensors
bool remove_sensors()
Remove all sensors.