scenario_simulator_v2 C++ API
Public Member Functions | Public Attributes | List of all members
concealer::RandomNumberEngine Struct Reference

Provides common components for obtaining the seed and initializing the pseudo random number generator engine obtains the seed from the parameter <topic>.seed initializes engine appropriately. More...

#include <publisher.hpp>

Inheritance diagram for concealer::RandomNumberEngine:
Inheritance graph
[legend]

Public Member Functions

 RandomNumberEngine (const rclcpp::node_interfaces::NodeParametersInterface::SharedPtr &node, const std::string &topic)
 

Public Attributes

const std::random_device::result_type seed
 
std::mt19937_64 engine
 

Detailed Description

Provides common components for obtaining the seed and initializing the pseudo random number generator engine obtains the seed from the parameter <topic>.seed initializes engine appropriately.

Constructor & Destructor Documentation

◆ RandomNumberEngine()

concealer::RandomNumberEngine::RandomNumberEngine ( const rclcpp::node_interfaces::NodeParametersInterface::SharedPtr &  node,
const std::string &  topic 
)
explicit

Member Data Documentation

◆ engine

std::mt19937_64 concealer::RandomNumberEngine::engine

◆ seed

const std::random_device::result_type concealer::RandomNumberEngine::seed

The documentation for this struct was generated from the following files: