Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RoboRTS/roborts_planning/local_planner/timed_elastic_band/src/teb_local_planner.cpp 中 GetPlan() SetPlan() 无返回值造成内存异常 #55

Open
neevop opened this issue May 19, 2021 · 0 comments

Comments

@neevop
Copy link

neevop commented May 19, 2021

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 (plan_mutex_.try_lock()) {
ROS_INFO("set plan");
if (plan.poses.empty()) {
temp_plan_.poses.push_back(goal);
} else {
temp_plan_ = plan;
}
plan_mutex_.unlock();
}}
bool TebLocalPlanner::GetPlan(const nav_msgs::Path& plan) {
if (plan_mutex_.try_lock()) {
global_plan_ = plan;
plan_mutex_.unlock();
}}

(本人入门小白,如有误报,敬请原谅。)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant