Interface that allows to get sensor configuration and switch publish state.
More...
#include <SensorConfigurationRequestBus.h>
Inherits AZ::EBusTraits.
|
using | BusIdType = AZ::EntityComponentIdPair |
|
|
| AZ_RTTI (SensorConfigurationRequest, "{01904eab-fa33-7487-b634-e3f8361eb5fb}") |
|
virtual SensorConfiguration | GetSensorConfiguration () const =0 |
| Get the configuration of the sensor.
|
|
virtual void | SetSensorEnabled (bool enable)=0 |
| Enable or disable the sensor, completely stopping the sensor from running.
|
|
virtual void | SetPublishingEnabled (bool publishingEnabled)=0 |
|
virtual void | SetVisualizeEnabled (bool visualizeEnabled)=0 |
|
virtual float | GetEffectiveFrequency () const =0 |
| Get the the current frequency of the sensor in hertz.
|
|
virtual void | SetDesiredFrequency (float frequency)=0 |
| Sets desired frequency of the sensor in hertz.
|
|
|
static constexpr AZ::EBusAddressPolicy | AddressPolicy = AZ::EBusAddressPolicy::ById |
|
Interface that allows to get sensor configuration and switch publish state.
◆ SetPublishingEnabled()
virtual void ROS2::SensorConfigurationRequest::SetPublishingEnabled |
( |
bool | publishingEnabled | ) |
|
|
pure virtual |
Enable or disable publishing of the sensor to ROS 2. The sensor implementation will still be running, but the data will not be published.
◆ SetVisualizeEnabled()
virtual void ROS2::SensorConfigurationRequest::SetVisualizeEnabled |
( |
bool | visualizeEnabled | ) |
|
|
pure virtual |
Enable or disable visualization of the sensor. The sensor implementation will still be running, but the data will not be visualized in the viewport.
The documentation for this class was generated from the following file:
- Gems/ROS2/Code/Include/ROS2/Sensor/SensorConfigurationRequestBus.h