15 #ifndef CONCEALER__AUTOWARE_UNIVERSE_HPP_
16 #define CONCEALER__AUTOWARE_UNIVERSE_HPP_
19 #include <autoware_control_msgs/msg/control.hpp>
20 #include <autoware_vehicle_msgs/msg/control_mode_report.hpp>
21 #include <autoware_vehicle_msgs/msg/gear_command.hpp>
22 #include <autoware_vehicle_msgs/msg/gear_report.hpp>
23 #include <autoware_vehicle_msgs/msg/steering_report.hpp>
24 #include <autoware_vehicle_msgs/msg/turn_indicators_command.hpp>
25 #include <autoware_vehicle_msgs/msg/turn_indicators_report.hpp>
26 #include <autoware_vehicle_msgs/msg/velocity_report.hpp>
27 #include <autoware_vehicle_msgs/srv/control_mode_command.hpp>
32 #include <geometry_msgs/msg/accel_with_covariance_stamped.hpp>
33 #include <geometry_msgs/msg/pose.hpp>
34 #include <geometry_msgs/msg/twist_stamped.hpp>
35 #include <nav_msgs/msg/odometry.hpp>
36 #include <rclcpp/rclcpp.hpp>
37 #include <tier4_planning_msgs/msg/path_with_lane_id.hpp>
47 using Control = autoware_control_msgs::msg::Control;
51 using GearReport = autoware_vehicle_msgs::msg::GearReport;
80 rclcpp::Service<ControlModeCommand>::SharedPtr control_mode_request_server;
82 const rclcpp::TimerBase::SharedPtr localization_update_timer;
84 const rclcpp::TimerBase::SharedPtr vehicle_state_update_timer;
86 std::thread localization_and_vehicle_state_update_thread;
88 std::atomic<bool> is_stop_requested =
false;
90 std::atomic<std::uint8_t> current_control_mode = ControlModeReport::AUTONOMOUS;
92 std::atomic<bool> is_thrown =
false;
94 std::exception_ptr thrown;
Definition: autoware_universe.hpp:43
auto updateLocalization() -> void
Definition: autoware_universe.cpp:94
PublisherWrapper< GearReport > setGearReport
Definition: autoware_universe.hpp:69
autoware_vehicle_msgs::msg::GearReport GearReport
Definition: autoware_universe.hpp:51
autoware_vehicle_msgs::msg::GearCommand GearCommand
Definition: autoware_universe.hpp:50
auto getRouteLanelets() const -> std::vector< std::int64_t >
Definition: autoware_universe.cpp:211
autoware_vehicle_msgs::srv::ControlModeCommand ControlModeCommand
Definition: autoware_universe.hpp:48
autoware_control_msgs::msg::Control Control
Definition: autoware_universe.hpp:47
autoware_vehicle_msgs::msg::ControlModeReport ControlModeReport
Definition: autoware_universe.hpp:49
SubscriberWrapper< Control > getCommand
Definition: autoware_universe.hpp:60
PublisherWrapper< SteeringReport > setSteeringReport
Definition: autoware_universe.hpp:68
autoware_vehicle_msgs::msg::SteeringReport SteeringReport
Definition: autoware_universe.hpp:55
auto getVehicleCommand() const -> std::tuple< double, double, double, double, int >
Definition: autoware_universe.cpp:175
autoware_vehicle_msgs::msg::TurnIndicatorsCommand TurnIndicatorsCommand
Definition: autoware_universe.hpp:56
autoware_vehicle_msgs::msg::TurnIndicatorsReport TurnIndicatorsReport
Definition: autoware_universe.hpp:57
PublisherWrapper< TurnIndicatorsReport > setTurnIndicatorsReport
Definition: autoware_universe.hpp:72
~AutowareUniverse()
Definition: autoware_universe.cpp:81
autoware_vehicle_msgs::msg::VelocityReport VelocityReport
Definition: autoware_universe.hpp:58
tier4_planning_msgs::msg::PathWithLaneId PathWithLaneId
Definition: autoware_universe.hpp:53
CONCEALER_PUBLIC AutowareUniverse(bool)
Definition: autoware_universe.cpp:19
std::atomic< geometry_msgs::msg::Twist > current_twist
Definition: autoware_universe.hpp:76
geometry_msgs::msg::AccelWithCovarianceStamped AccelWithCovarianceStamped
Definition: autoware_universe.hpp:46
geometry_msgs::msg::PoseWithCovarianceStamped PoseWithCovarianceStamped
Definition: autoware_universe.hpp:54
std::atomic< geometry_msgs::msg::Pose > current_pose
Definition: autoware_universe.hpp:75
PublisherWrapper< VelocityReport > setVelocityReport
Definition: autoware_universe.hpp:71
PublisherWrapper< AccelWithCovarianceStamped > setAcceleration
Definition: autoware_universe.hpp:65
auto getControlModeReport() const -> ControlModeReport
Definition: autoware_universe.cpp:220
nav_msgs::msg::Odometry Odometry
Definition: autoware_universe.hpp:52
PublisherWrapper< PoseWithCovarianceStamped > setPose
Definition: autoware_universe.hpp:67
auto updateVehicleState() -> void
Definition: autoware_universe.cpp:138
std::atomic< geometry_msgs::msg::Accel > current_acceleration
Definition: autoware_universe.hpp:74
SubscriberWrapper< PathWithLaneId > getPathWithLaneId
Definition: autoware_universe.hpp:63
SubscriberWrapper< TurnIndicatorsCommand > getTurnIndicatorsCommand
Definition: autoware_universe.hpp:62
SubscriberWrapper< GearCommand > getGearCommand
Definition: autoware_universe.hpp:61
auto rethrow() -> void
Definition: autoware_universe.cpp:87
auto setManualMode() -> void
Definition: autoware_universe.cpp:227
PublisherWrapper< Odometry > setOdometry
Definition: autoware_universe.hpp:66
PublisherWrapper< ControlModeReport > setControlModeReport
Definition: autoware_universe.hpp:70
#define CONCEALER_PUBLIC
Definition: visibility.hpp:49
Definition: autoware_universe.hpp:40