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

#include <imu_sensor.hpp>

Inheritance diagram for simple_sensor_simulator::ImuSensor< MessageType >:
Inheritance graph
[legend]
Collaboration diagram for simple_sensor_simulator::ImuSensor< MessageType >:
Collaboration graph
[legend]

Public Member Functions

 ImuSensor (const simulation_api_schema::ImuSensorConfiguration &configuration, const typename rclcpp::Publisher< MessageType >::SharedPtr &publisher)
 
auto update (const rclcpp::Time &current_ros_time, const std::vector< traffic_simulator_msgs::EntityStatus > &statuses) const -> bool override
 
- Public Member Functions inherited from simple_sensor_simulator::ImuSensorBase
 ImuSensorBase (const simulation_api_schema::ImuSensorConfiguration &configuration)
 
virtual ~ImuSensorBase ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from simple_sensor_simulator::ImuSensorBase
auto calculateCovariance (const double stddev) const -> std::array< double, 9 >
 
- Protected Attributes inherited from simple_sensor_simulator::ImuSensorBase
const bool add_gravity_
 
const double noise_standard_deviation_orientation_
 
const double noise_standard_deviation_twist_
 
const double noise_standard_deviation_acceleration_
 
std::mt19937 random_generator_
 
std::normal_distribution noise_distribution_orientation_
 
std::normal_distribution noise_distribution_twist_
 
std::normal_distribution noise_distribution_acceleration_
 
const std::array< double, 9 > orientation_covariance_
 
const std::array< double, 9 > angular_velocity_covariance_
 
const std::array< double, 9 > linear_acceleration_covariance_
 

Constructor & Destructor Documentation

◆ ImuSensor()

template<typename MessageType >
simple_sensor_simulator::ImuSensor< MessageType >::ImuSensor ( const simulation_api_schema::ImuSensorConfiguration &  configuration,
const typename rclcpp::Publisher< MessageType >::SharedPtr &  publisher 
)
inlineexplicit

Member Function Documentation

◆ update()

template<typename MessageType >
auto simple_sensor_simulator::ImuSensor< MessageType >::update ( const rclcpp::Time &  current_ros_time,
const std::vector< traffic_simulator_msgs::EntityStatus > &  statuses 
) const -> bool
inlineoverridevirtual

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