Skip to content

Commit

Permalink
Update footprint in costmap config
Browse files Browse the repository at this point in the history
  • Loading branch information
nkuwenjian committed Oct 29, 2023
1 parent 49edc66 commit 03af87a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lattice_path_planner/tf_broadcaster.cc
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ class TfBroadcaster {
std::unique_ptr<std::thread> transform_thread_ = nullptr;
};

TfBroadcaster::~TfBroadcaster() { transform_thread_->join(); }
TfBroadcaster::~TfBroadcaster() {
if (transform_thread_ != nullptr) {
transform_thread_->join();
}
}

void TfBroadcaster::Initialize() {
start_sub_ = nh_.subscribe("initialpose", 1, &TfBroadcaster::SetStart, this);
Expand Down
3 changes: 2 additions & 1 deletion params/costmap_common_params.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
#---standard pioneer footprint---
#---(in meters)---
robot_radius: 0.25
# robot_radius: 0.25
footprint: [[-0.23, -0.2], [-0.23, 0.2], [0.23, 0.2], [0.23, -0.2]]
footprint_padding: 0.01

transform_tolerance: 0.2
Expand Down

0 comments on commit 03af87a

Please sign in to comment.