Base class of occupancy grid sensor simulator.
More...
#include <occupancy_grid_sensor.hpp>
|
| OccupancyGridSensorBase (const double current_simulation_time, const simulation_api_schema::OccupancyGridSensorConfiguration &configuration) |
|
Base class of occupancy grid sensor simulator.
◆ OccupancyGridSensorBase()
simple_sensor_simulator::OccupancyGridSensorBase::OccupancyGridSensorBase |
( |
const double |
current_simulation_time, |
|
|
const simulation_api_schema::OccupancyGridSensorConfiguration & |
configuration |
|
) |
| |
|
inlineexplicitprotected |
◆ ~OccupancyGridSensorBase()
virtual simple_sensor_simulator::OccupancyGridSensorBase::~OccupancyGridSensorBase |
( |
| ) |
|
|
virtualdefault |
◆ getDetectedObjects()
const std::vector< std::string > simple_sensor_simulator::OccupancyGridSensorBase::getDetectedObjects |
( |
const std::vector< traffic_simulator_msgs::EntityStatus > & |
status, |
|
|
const std::vector< std::string > & |
lidar_detected_entities |
|
) |
| const |
List all objects in range of sensor sight.
- Warning
status
must contain EGO object
- Returns
- names of objects in range of sensor sight
◆ getSensorPose()
Extract sensor pose from entity statuses.
- Returns
- sensor pose
- Warning
status
must contain EGO object
- Exceptions
-
◆ update()
virtual void simple_sensor_simulator::OccupancyGridSensorBase::update |
( |
const double |
current_simulation_time, |
|
|
const std::vector< traffic_simulator_msgs::EntityStatus > & |
, |
|
|
const rclcpp::Time & |
current_ros_time, |
|
|
const std::vector< std::string > & |
lidar_detected_entities |
|
) |
| |
|
pure virtual |
◆ configuration_
simulation_api_schema::OccupancyGridSensorConfiguration simple_sensor_simulator::OccupancyGridSensorBase::configuration_ |
|
protected |
◆ detected_objects_
std::vector<std::string> simple_sensor_simulator::OccupancyGridSensorBase::detected_objects_ |
|
protected |
◆ previous_simulation_time_
double simple_sensor_simulator::OccupancyGridSensorBase::previous_simulation_time_ |
|
protected |
The documentation for this class was generated from the following files: