Skip to content

Commit fa1a64a

Browse files
SteveMacenskiruffslnaiveHobomikefergusondaisukes
authored
Foxy sync 3 (#1965)
* waypoint_follower node has _rclcpp_node as well as base node (#1940) * Add #include <vector> for vector<> (#1946) To fix cpplint * Add 'angles' dependency to nav2_costmap_2d package.xml (#1947) * transform goal to costmap frame (#1949) The plan recieved is usually in global frame, but our local costmap is often in odom frame. This fixes a regression from #1857 * Add mutex lock into inflation layer to avoid thread issue in updating footprint (#1952) Signed-off-by: Daisuke Sato <[email protected]> * Fix being unable to change StandardTrajectoryGenerator parameter vtheta_samples (#1619) * Fix tests declaring parameters real nodes don't Signed-off-by: Shane Loretz <[email protected]> * Fix loadParameterWithDeprecation not getting initial parameter values Signed-off-by: Shane Loretz <[email protected]> * Create sim_time variable before using it Signed-off-by: Shane Loretz <[email protected]> * Line length < 100 Signed-off-by: Shane Loretz <[email protected]> * Add missing { Signed-off-by: Shane Loretz <[email protected]> * Linter fixes Signed-off-by: Shane Loretz <[email protected]> * sim_granularity -> time_granularity Signed-off-by: Shane Loretz <[email protected]> * Linter fix Signed-off-by: Shane Loretz <[email protected]> * update version to 0.4.3 * removing redundant dep on angles Co-authored-by: Ruffin <[email protected]> Co-authored-by: Sarthak Mittal <[email protected]> Co-authored-by: Michael Ferguson <[email protected]> Co-authored-by: Daisuke Sato <[email protected]> Co-authored-by: Shane Loretz <[email protected]>
1 parent db2f917 commit fa1a64a

File tree

35 files changed

+130
-93
lines changed

35 files changed

+130
-93
lines changed

nav2_amcl/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
44
<name>nav2_amcl</name>
5-
<version>0.4.2</version>
5+
<version>0.4.3</version>
66
<description>
77
<p>
88
amcl is a probabilistic localization system for a robot moving in

nav2_behavior_tree/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
44
<name>nav2_behavior_tree</name>
5-
<version>0.4.2</version>
5+
<version>0.4.3</version>
66
<description>TODO</description>
77
<maintainer email="[email protected]">Michael Jeronimo</maintainer>
88
<maintainer email="[email protected]">Carlos Orduno</maintainer>

nav2_bringup/bringup/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
44
<name>nav2_bringup</name>
5-
<version>0.4.2</version>
5+
<version>0.4.3</version>
66
<description>Bringup scripts and configurations for the navigation2 stack</description>
77
<maintainer email="[email protected]">Michael Jeronimo</maintainer>
88
<maintainer email="[email protected]">Steve Macenski</maintainer>

nav2_bringup/nav2_gazebo_spawner/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
44
<name>nav2_gazebo_spawner</name>
5-
<version>0.4.2</version>
5+
<version>0.4.3</version>
66
<description>Package for spawning a robot model into Gazebo for navigation2</description>
77
<maintainer email="[email protected]">lkumarbe</maintainer>
88
<maintainer email="[email protected]">lkumarbe</maintainer>

nav2_bt_navigator/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
44
<name>nav2_bt_navigator</name>
5-
<version>0.4.2</version>
5+
<version>0.4.3</version>
66
<description>TODO</description>
77
<maintainer email="[email protected]">Michael Jeronimo</maintainer>
88
<license>Apache-2.0</license>

nav2_common/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
44
<name>nav2_common</name>
5-
<version>0.4.2</version>
5+
<version>0.4.3</version>
66
<description>Common support functionality used throughout the navigation 2 stack</description>
77
<maintainer email="[email protected]">Carl Delsey</maintainer>
88
<license>Apache-2.0</license>

nav2_controller/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
44
<name>nav2_controller</name>
5-
<version>0.4.2</version>
5+
<version>0.4.3</version>
66
<description>Controller action interface</description>
77
<maintainer email="[email protected]">Carl Delsey</maintainer>
88
<license>Apache-2.0</license>

nav2_controller/src/nav2_controller.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
#include "nav2_core/exceptions.hpp"
2222
#include "nav_2d_utils/conversions.hpp"
23+
#include "nav_2d_utils/tf_help.hpp"
2324
#include "nav2_util/node_utils.hpp"
2425
#include "nav2_util/geometry_utils.hpp"
2526
#include "nav2_controller/nav2_controller.hpp"
@@ -328,6 +329,11 @@ void ControllerServer::setPlannerPath(const nav_msgs::msg::Path & path)
328329
controllers_[current_controller_]->setPlan(path);
329330

330331
auto end_pose = path.poses.back();
332+
end_pose.header.frame_id = path.header.frame_id;
333+
rclcpp::Duration tolerance(costmap_ros_->getTransformTolerance() * 1e9);
334+
nav_2d_utils::transformPose(
335+
costmap_ros_->getTfBuffer(), costmap_ros_->getGlobalFrameID(),
336+
end_pose, end_pose, tolerance);
331337
goal_checker_->reset();
332338

333339
RCLCPP_DEBUG(

nav2_core/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
44
<name>nav2_core</name>
5-
<version>0.4.2</version>
5+
<version>0.4.3</version>
66
<description>A set of headers for plugins core to the navigation2 stack</description>
77
<maintainer email="[email protected]">Steve Macenski</maintainer>
88
<maintainer email="[email protected]">Carl Delsey</maintainer>

nav2_costmap_2d/include/nav2_costmap_2d/inflation_layer.hpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040

4141
#include <map>
4242
#include <vector>
43+
#include <mutex>
4344

4445
#include "rclcpp/rclcpp.hpp"
4546
#include "nav2_costmap_2d/layer.hpp"
@@ -77,7 +78,7 @@ class InflationLayer : public Layer
7778
public:
7879
InflationLayer();
7980

80-
~InflationLayer() override = default;
81+
~InflationLayer();
8182

8283
void onInitialize() override;
8384
void updateBounds(
@@ -115,6 +116,13 @@ class InflationLayer : public Layer
115116
return cost;
116117
}
117118

119+
// Provide a typedef to ease future code maintenance
120+
typedef std::recursive_mutex mutex_t;
121+
mutex_t * getMutex()
122+
{
123+
return access_;
124+
}
125+
118126
protected:
119127
void onFootprintChanged() override;
120128

@@ -184,6 +192,7 @@ class InflationLayer : public Layer
184192

185193
// Indicates that the entire costmap should be reinflated next time around.
186194
bool need_reinflation_;
195+
mutex_t * access_;
187196
};
188197

189198
} // namespace nav2_costmap_2d

0 commit comments

Comments
 (0)