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/RouteSpeedArray.h> 63 void loadFromConfig(
const marti_common_msgs::KeyValueArray &config);
64 void readToConfig(marti_common_msgs::KeyValueArray &config)
const;
68 marti_nav_msgs::RouteSpeedArray &speeds,
118 std::vector<ObstacleData> &obstacle_data,
120 const marti_nav_msgs::ObstacleArray &obstacles_msg);
123 marti_nav_msgs::RouteSpeedArray &speeds,
124 std::vector<DistanceReport> &reports,
126 const marti_nav_msgs::RoutePosition &route_position,
127 const std::vector<ObstacleData> &obstacles,
130 #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_