scenario_simulator_v2 C++ API
Public Member Functions | List of all members
simple_sensor_simulator::OccupancyGridSensor< T > Class Template Reference

occupancy grid sensor implementation More...

#include <occupancy_grid_sensor.hpp>

Inheritance diagram for simple_sensor_simulator::OccupancyGridSensor< T >:
Inheritance graph
[legend]
Collaboration diagram for simple_sensor_simulator::OccupancyGridSensor< T >:
Collaboration graph
[legend]

Public Member Functions

 OccupancyGridSensor (const double current_simulation_time, const simulation_api_schema::OccupancyGridSensorConfiguration &configuration, const typename rclcpp::Publisher< T >::SharedPtr &publisher_ptr)
 
auto update (const double current_simulation_time, const std::vector< traffic_simulator_msgs::EntityStatus > &entities, const rclcpp::Time &current_ros_time, const std::vector< std::string > &lidar_detected_entities) -> void override
 Update sensor status. More...
 
- Public Member Functions inherited from simple_sensor_simulator::OccupancyGridSensorBase
virtual ~OccupancyGridSensorBase ()=default
 
const std::vector< std::string > 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. More...
 
geometry_msgs::Pose getSensorPose (const std::vector< traffic_simulator_msgs::EntityStatus > &) const
 Extract sensor pose from entity statuses. More...
 

Additional Inherited Members

- Protected Member Functions inherited from simple_sensor_simulator::OccupancyGridSensorBase
 OccupancyGridSensorBase (const double current_simulation_time, const simulation_api_schema::OccupancyGridSensorConfiguration &configuration)
 
- Protected Attributes inherited from simple_sensor_simulator::OccupancyGridSensorBase
double previous_simulation_time_
 
simulation_api_schema::OccupancyGridSensorConfiguration configuration_
 
std::vector< std::string > detected_objects_
 

Detailed Description

template<typename T>
class simple_sensor_simulator::OccupancyGridSensor< T >

occupancy grid sensor implementation

Constructor & Destructor Documentation

◆ OccupancyGridSensor()

template<typename T >
simple_sensor_simulator::OccupancyGridSensor< T >::OccupancyGridSensor ( const double  current_simulation_time,
const simulation_api_schema::OccupancyGridSensorConfiguration &  configuration,
const typename rclcpp::Publisher< T >::SharedPtr &  publisher_ptr 
)
inlineexplicit

Member Function Documentation

◆ update()

template<typename T >
auto simple_sensor_simulator::OccupancyGridSensor< T >::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 
) -> void
inlineoverridevirtual

Update sensor status.

Implements simple_sensor_simulator::OccupancyGridSensorBase.


The documentation for this class was generated from the following file: