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

#include <detection_sensor.hpp>

Inheritance diagram for simple_sensor_simulator::DetectionSensor< T, U >:
Inheritance graph
[legend]
Collaboration diagram for simple_sensor_simulator::DetectionSensor< T, U >:
Collaboration graph
[legend]

Public Member Functions

 DetectionSensor (const double current_simulation_time, const simulation_api_schema::DetectionSensorConfiguration &configuration, const typename rclcpp::Publisher< T >::SharedPtr &publisher, const typename rclcpp::Publisher< U >::SharedPtr &ground_truth_publisher=nullptr)
 
 ~DetectionSensor () override=default
 
auto update (const double, const std::vector< traffic_simulator_msgs::EntityStatus > &, const rclcpp::Time &, const std::vector< std::string > &lidar_detected_entities) -> void override
 
auto update (const double current_simulation_time, const std::vector< traffic_simulator_msgs::EntityStatus > &statuses, const rclcpp::Time &current_ros_time, const std::vector< std::string > &lidar_detected_entities) -> void
 
- Public Member Functions inherited from simple_sensor_simulator::DetectionSensorBase
virtual ~DetectionSensorBase ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from simple_sensor_simulator::DetectionSensorBase
 DetectionSensorBase (const double current_simulation_time, const simulation_api_schema::DetectionSensorConfiguration &configuration)
 
auto isEgoEntityStatusToWhichThisSensorIsAttached (const traffic_simulator_msgs::EntityStatus &) const -> bool
 
auto findEgoEntityStatusToWhichThisSensorIsAttached (const std::vector< traffic_simulator_msgs::EntityStatus > &) const -> std::vector< traffic_simulator_msgs::EntityStatus >::const_iterator
 
auto isOnOrAboveEgoPlane (const geometry_msgs::Pose &npc_pose, const geometry_msgs::Pose &ego_pose) -> bool
 
- Protected Attributes inherited from simple_sensor_simulator::DetectionSensorBase
double previous_simulation_time_
 
simulation_api_schema::DetectionSensorConfiguration configuration_
 

Constructor & Destructor Documentation

◆ DetectionSensor()

template<typename T , typename U = autoware_perception_msgs::msg::TrackedObjects>
simple_sensor_simulator::DetectionSensor< T, U >::DetectionSensor ( const double  current_simulation_time,
const simulation_api_schema::DetectionSensorConfiguration &  configuration,
const typename rclcpp::Publisher< T >::SharedPtr &  publisher,
const typename rclcpp::Publisher< U >::SharedPtr &  ground_truth_publisher = nullptr 
)
inlineexplicit

◆ ~DetectionSensor()

template<typename T , typename U = autoware_perception_msgs::msg::TrackedObjects>
simple_sensor_simulator::DetectionSensor< T, U >::~DetectionSensor ( )
overridedefault

Member Function Documentation

◆ update() [1/2]

auto simple_sensor_simulator::DetectionSensor< autoware_perception_msgs::msg::DetectedObjects >::update ( const double  current_simulation_time,
const std::vector< traffic_simulator_msgs::EntityStatus > &  statuses,
const rclcpp::Time &  current_ros_time,
const std::vector< std::string > &  lidar_detected_entities 
) -> void
virtual

◆ update() [2/2]

template<typename T , typename U = autoware_perception_msgs::msg::TrackedObjects>
auto simple_sensor_simulator::DetectionSensor< T, U >::update ( const double  ,
const std::vector< traffic_simulator_msgs::EntityStatus > &  ,
const rclcpp::Time &  ,
const std::vector< std::string > &  lidar_detected_entities 
) -> void
overridevirtual

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