19 #ifndef TRAJECTORY_SPOOFER__TRAJECTORY_SPOOFER_NODE_HPP_ 20 #define TRAJECTORY_SPOOFER__TRAJECTORY_SPOOFER_NODE_HPP_ 24 #include <autoware_auto_msgs/msg/vehicle_kinematic_state.hpp> 25 #include <autoware_auto_msgs/msg/trajectory.hpp> 27 #include <rclcpp/rclcpp.hpp> 38 using std::placeholders::_1;
46 enum class TrajectoryType : uint8_t
54 int32_t num_of_points_;
55 TrajectoryType trajectory_type_;
61 std::shared_ptr<TrajectorySpoofer> spoofer_;
62 std::shared_ptr<rclcpp::Publisher<Trajectory>> trajectory_pub_;
63 std::shared_ptr<rclcpp::Subscription<VehicleKinematicState>> state_sub_;
65 TrajectoryType get_trajectory_type_from_string(
const std::string & trajectory_type_string)
67 if (trajectory_type_string ==
"straight") {
68 return TrajectoryType::STRAIGHT;
69 }
else if (trajectory_type_string ==
"circle") {
70 return TrajectoryType::CIRCLE;
72 throw std::invalid_argument{
"Unknown trajectory type"};
82 void on_recv_state(VehicleKinematicState::SharedPtr msg);
88 #endif // TRAJECTORY_SPOOFER__TRAJECTORY_SPOOFER_NODE_HPP_ autoware_auto_msgs::msg::VehicleKinematicState VehicleKinematicState
Definition: trajectory_spoofer.hpp:44
float float32_t
Definition: types.hpp:36
DifferentialState u
Definition: kinematic_bicycle.snippet.hpp:29
autoware_auto_msgs::msg::Trajectory Trajectory
Definition: motion_common.hpp:37
bool bool8_t
Definition: types.hpp:33
This file includes common type definition.
ROS 2 Node for creating fake trajectories.
Definition: trajectory_spoofer_node.hpp:42
This file defines the TrajectorySpoofer class.
autoware_auto_msgs::msg::Trajectory Trajectory
Definition: trajectory_spoofer.hpp:42
Definition: trajectory_spoofer.launch.py:1
This file defines the lanelet2_map_provider_node class.
Definition: quick_sort.hpp:24