Skip to content

Commit

Permalink
planner - detection of the robot's path crossing by surrounding hum…
Browse files Browse the repository at this point in the history
…an(s) logged
  • Loading branch information
rayvburn committed Jan 19, 2024
1 parent 6d8e9c5 commit a97e739
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/humap_planner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,14 @@ base_local_planner::Trajectory HumapPlanner::findBestTrajectory(
auto traj_person = person.getTrajectoryPrediction();
trajs_people.push_back(traj_person);
}
crossing_.detect(traj_robot_g, trajs_people);
if (crossing_.detect(traj_robot_g, trajs_people)) {
ROS_WARN_NAMED(
"HumapPlanner",
"Detected the intersection of robot's and %lu people's trajectories. Gap to the closest person is %5.2f m.",
crossing_.getCrossingPeopleData().size(),
crossing_.getGapToClosestPerson()
);
}

geometry_msgs::PoseStamped goal_pose;
goal_pose.pose = goal_.getAsMsgPose();
Expand Down

0 comments on commit a97e739

Please sign in to comment.