scenario_simulator_v2 C++ API
|
#include <traffic_source.hpp>
Classes | |
struct | Configuration |
struct | Validator |
Public Types | |
using | VehicleParameter = traffic_simulator_msgs::msg::VehicleParameters |
using | PedestrianParameter = traffic_simulator_msgs::msg::PedestrianParameters |
using | VehicleOrPedestrianParameter = std::variant< VehicleParameter, PedestrianParameter > |
using | Distribution = std::vector< std::tuple< VehicleOrPedestrianParameter, std::string, std::string, double > > |
template<typename Pose , typename Parameters > | |
using | Spawner = std::function< void(const std::string &, const Pose &, const Parameters &, const std::string &, const std::string &)> |
Public Member Functions | |
template<typename Spawner > | |
TrafficSource (const double radius, const double rate, const geometry_msgs::msg::Pose &pose, const Distribution &distribution, const std::optional< int > seed, const double current_time, const Configuration &configuration, const std::shared_ptr< hdmap_utils::HdMapUtils > &hdmap_utils, const Spawner &spawn) | |
void | execute (const double current_time, const double step_time) override |
Public Member Functions inherited from traffic_simulator::traffic::TrafficModuleBase | |
TrafficModuleBase () | |
virtual auto | appendDebugMarker (visualization_msgs::msg::MarkerArray &) const -> void |
Public Attributes | |
const double | rate |
const geometry_msgs::msg::Pose | pose |
const std::size_t | id |
using traffic_simulator::traffic::TrafficSource::Distribution = std::vector<std::tuple<VehicleOrPedestrianParameter, std::string, std::string, double> > |
using traffic_simulator::traffic::TrafficSource::PedestrianParameter = traffic_simulator_msgs::msg::PedestrianParameters |
using traffic_simulator::traffic::TrafficSource::Spawner = std::function<void( const std::string &, const Pose &, const Parameters &, const std::string &, const std::string &)> |
using traffic_simulator::traffic::TrafficSource::VehicleOrPedestrianParameter = std::variant<VehicleParameter, PedestrianParameter> |
using traffic_simulator::traffic::TrafficSource::VehicleParameter = traffic_simulator_msgs::msg::VehicleParameters |
|
inlineexplicit |
|
overridevirtual |
Implements traffic_simulator::traffic::TrafficModuleBase.
const std::size_t traffic_simulator::traffic::TrafficSource::id |
const geometry_msgs::msg::Pose traffic_simulator::traffic::TrafficSource::pose |
const double traffic_simulator::traffic::TrafficSource::rate |