Skip to content

Commit

Permalink
Add explanation that it will not be checked in the future again
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
  • Loading branch information
aaronchongth committed Jun 27, 2022
1 parent 8d159ef commit 96254f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rmf_robot_sim_gazebo_plugins/src/slotcar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ std::vector<Eigen::Vector3d> SlotcarPlugin::get_obstacle_positions(
void SlotcarPlugin::OnUpdate()
{
const auto& world = _model->GetWorld();

// After initialization once, this set will have at least one exclusion, which
// is the itself.
if (obstacle_exclusions.empty())
init_obstacle_exclusions();

Expand Down
3 changes: 3 additions & 0 deletions rmf_robot_sim_ignition_plugins/src/slotcar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,9 @@ void SlotcarPlugin::PreUpdate(const UpdateInfo& info,

// TODO parallel thread executor?
rclcpp::spin_some(_ros_node);

// After initialization once, this set will have at least one exclusion, which
// is the itself.
if (_obstacle_exclusions.empty())
init_obstacle_exclusions(ecm);

Expand Down

0 comments on commit 96254f1

Please sign in to comment.