An open source software stack for Real-Time Strategy research on mobile robots
847
stars
348
forks
source link
RoboRTS/roborts_planning/local_planner/timed_elastic_band/src/teb_local_planner.cpp 中 GetPlan() SetPlan() 无返回值造成内存异常 #55
Open
neevop opened 3 years ago
RoboRTS/roborts_planning/local_planner/timed_elastic_band/src/teb_local_planner.cpp 的第238-255行两个方法无返回值,运行时内存异常。 bool TebLocalPlanner::SetPlan(const nav_msgs::Path& plan, const geometry_msgs::PoseStamped& goal) { if (planmutex.try_lock()) { ROS_INFO("set plan"); if (plan.poses.empty()) { tempplan.poses.push_back(goal); } else { tempplan = plan; } planmutex.unlock(); }} bool TebLocalPlanner::GetPlan(const nav_msgs::Path& plan) { if (planmutex.try_lock()) { globalplan = plan; planmutex.unlock(); }}
(本人入门小白,如有误报,敬请原谅。)