29 #ifndef SWRI_ROUTE_UTIL_ROUTE_SPEEDS_H_ 30 #define SWRI_ROUTE_UTIL_ROUTE_SPEEDS_H_ 32 #include <marti_common_msgs/KeyValueArray.h> 33 #include <marti_nav_msgs/ObstacleArray.h> 34 #include <marti_nav_msgs/TrackedObjectArray.h> 35 #include <marti_nav_msgs/RouteSpeedArray.h> 64 void loadFromConfig(
const marti_common_msgs::KeyValueArray &config);
65 void readToConfig(marti_common_msgs::KeyValueArray &config)
const;
69 marti_nav_msgs::RouteSpeedArray &speeds,
119 std::vector<ObstacleData> &obstacle_data,
121 const marti_nav_msgs::ObstacleArray &obstacles_msg);
124 std::vector<ObstacleData> &obstacle_data,
126 const marti_nav_msgs::TrackedObjectArray &obstacles_msg);
129 marti_nav_msgs::RouteSpeedArray &speeds,
130 std::vector<DistanceReport> &reports,
132 const marti_nav_msgs::RoutePosition &route_position,
133 const std::vector<ObstacleData> &obstacles,
136 #endif // SWRI_ROUTE_UTIL_ROUTE_SPEEDS_H_
bool use_speed_from_accel_constant_
void speedsForObstacles(marti_nav_msgs::RouteSpeedArray &speeds, std::vector< DistanceReport > &reports, const Route &route, const marti_nav_msgs::RoutePosition &route_position, const std::vector< ObstacleData > &obstacles, const SpeedForObstaclesParameters ¶meters)
void readToConfig(marti_common_msgs::KeyValueArray &config) const
void loadFromRosParam(const ros::NodeHandle &pnh)
double curvature_filter_size_
tf::Vector3 vehicle_point
double max_lateral_accel_mss_
Maximum lateral acceleration in accel mode in m/s^2.
void speedsForCurvature(marti_nav_msgs::RouteSpeedArray &speeds, const Route &route, const SpeedForCurvatureParameters ¶meters)
double origin_to_right_m_
tf::Vector3 obstacle_point
double origin_to_front_m_
void generateObstacleData(std::vector< ObstacleData > &obstacle_data, const swri_transform_util::Transform g_route_from_obs, const marti_nav_msgs::ObstacleArray &obstacles_msg)
SpeedForCurvatureParameters()
std::vector< tf::Vector3 > polygon
void loadFromConfig(const marti_common_msgs::KeyValueArray &config)
swri_math_util::Interpolation1D speed_curve_