14 #ifndef MOTION_TESTING__MOTION_TESTING_HPP_ 15 #define MOTION_TESTING__MOTION_TESTING_HPP_ 18 #include <autoware_auto_msgs/msg/trajectory.hpp> 19 #include <autoware_auto_msgs/msg/vehicle_control_command.hpp> 20 #include <autoware_auto_msgs/msg/vehicle_kinematic_state.hpp> 27 namespace motion_testing
43 std::chrono::system_clock::time_point
t);
71 std::chrono::nanoseconds dt);
79 std::chrono::nanoseconds dt);
87 std::chrono::nanoseconds dt);
96 std::chrono::nanoseconds dt);
108 using Index = decltype(Trajectory::points)::size_type;
113 MOTION_TESTING_PUBLIC
116 const Point & target,
117 Real heading_tolerance =
Real{0.006F});
122 MOTION_TESTING_PUBLIC
127 #endif // MOTION_TESTING__MOTION_TESTING_HPP_ MOTION_TESTING_PUBLIC Trajectory constant_acceleration_turn_rate_trajectory(float x0, float y0, float heading, float v0, float a0, float turn_rate, std::chrono::nanoseconds dt)
Generates a constant acceleration and constant turn rate trajectory.
Definition: motion_testing.cpp:183
autoware_auto_msgs::msg::VehicleKinematicState VehicleKinematicState
Definition: trajectory_spoofer.hpp:44
MOTION_TESTING_PUBLIC void next_state(const Trajectory &trajectory, State &state, uint32_t hint, Generator *gen=nullptr)
Definition: motion_testing.cpp:199
MOTION_TESTING_PUBLIC Trajectory bad_heading_trajectory(const State &start_state, std::chrono::nanoseconds dt)
Generates a constant velocity trajectory.
Definition: motion_testing.cpp:119
autoware_auto_msgs::msg::TrajectoryPoint TrajectoryPoint
Definition: motion_testing_publisher.hpp:36
autoware_auto_msgs::msg::TrajectoryPoint Point
Definition: motion_testing.hpp:31
std::mt19937 Generator
Definition: motion_testing.hpp:29
MOTION_TESTING_PUBLIC Trajectory constant_velocity_turn_rate_trajectory(float x0, float y0, float heading, float v0, float turn_rate, std::chrono::nanoseconds dt)
Generates a constant velocity and constant turn rate trajectory.
Definition: motion_testing.cpp:171
t
Definition: catr_diff.py:22
MOTION_TESTING_PUBLIC Index dynamically_feasible(const Trajectory &trajectory, Real tolerance=0.05F)
Definition: motion_testing.cpp:241
decltype(Trajectory::points)::size_type Index
Definition: motion_testing.hpp:108
DifferentialState x
Definition: kinematic_bicycle.snippet.hpp:28
MOTION_TESTING_PUBLIC Trajectory constant_trajectory(const State &start_state, std::chrono::nanoseconds dt)
Generate a trajectory given the start state, assuming the highest derivatives are held constant...
Definition: motion_testing.cpp:79
Definition: controller_base.hpp:30
autoware_auto_msgs::msg::VehicleKinematicState State
Definition: motion_testing.hpp:30
MOTION_TESTING_PUBLIC Trajectory constant_acceleration_trajectory(float x0, float y0, float heading, float v0, float a0, std::chrono::nanoseconds dt)
Generates a constant acceleration trajectory.
Definition: motion_testing.cpp:159
MOTION_TESTING_PUBLIC State generate_state(Generator &gen)
Generates a state from a normal distribution with the following bounds: TODO(c.ho) ...
Definition: motion_testing.cpp:49
MOTION_TESTING_PUBLIC Trajectory generate_trajectory(const State &start_state, Generator &gen)
Generates a trajectory assuming the starting state, a bicycle model, and additive noise applied to XX...
Definition: motion_testing.cpp:70
MOTION_TESTING_PUBLIC State make_state(float x0, float y0, float heading, float v0, float a0, float turn_rate, std::chrono::system_clock::time_point t)
Makes a state, intended to make message generation more terse.
Definition: motion_testing.cpp:24
MOTION_TESTING_PUBLIC Trajectory constant_velocity_trajectory(float x0, float y0, float heading, float v0, std::chrono::nanoseconds dt)
Generates a constant velocity trajectory with invalid heading values.
Definition: motion_testing.cpp:148
MOTION_TESTING_PUBLIC Index progresses_towards_target(const Trajectory &trajectory, const Point &target, Real heading_tolerance=Real{0.006F})
Definition: motion_testing.cpp:212
decltype(Point::x) Real
Definition: motion_testing.hpp:109
autoware_auto_msgs::msg::Trajectory Trajectory
Definition: motion_testing.hpp:32