Skip to content
Snippets Groups Projects
Unverified Commit b8e9fba4 authored by Wilco Bonestroo's avatar Wilco Bonestroo Committed by GitHub
Browse files

Initialize inflate_cone_ variable. (#1988)

* Initialize inflate_cone_ variable.

* initialize inflate_cone_ based on parameter.

* Increase the sleep time in the tests makes the costmap test always succeed on my machine.
parent 79963a42
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ void RangeSensorLayer::onInitialize()
declareParameter("phi", rclcpp::ParameterValue(1.2));
node->get_parameter(name_ + "." + "phi", phi_v_);
declareParameter("inflate_cone", rclcpp::ParameterValue(1.0));
node->get_parameter(name_ + "." + "phi", phi_v_);
node->get_parameter(name_ + "." + "inflate_cone", inflate_cone_);
declareParameter("no_readings_timeout", rclcpp::ParameterValue(0.0));
node->get_parameter(name_ + "." + "no_readings_timeout", no_readings_timeout_);
declareParameter("clear_threshold", rclcpp::ParameterValue(0.2));
......
......@@ -183,7 +183,7 @@ public:
setPose(x, y, theta);
publishFootprint();
publishCostmap();
rclcpp::sleep_for(std::chrono::milliseconds(50));
rclcpp::sleep_for(std::chrono::milliseconds(1000));
return collision_checker_->isCollisionFree(pose);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment