Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
115 commits
Select commit Hold shift + click to select a range
459b74d
Cleaned up version of is path valid (#2591)
jwallace42 Feb 2, 2022
d83f9d9
Feature to call controller action server to follow path (#2789)
Ekanshh Feb 5, 2022
aecd0b8
BT nodes xml naming fix (#2805)
matijazigic Feb 7, 2022
e44550a
Add recoveries to simple commander (#2792)
Feb 7, 2022
5a17db5
added planner_id (#2806)
jwallace42 Feb 8, 2022
70e7948
Fixing the issue #2781: raytraceLine with same start and end point (#…
janx8r Feb 10, 2022
d82e8ec
Add optional node names to wait (#2811)
Feb 12, 2022
f1d25e9
Drop unneeded dependency on python-enum34 (#2819)
cottsay Feb 15, 2022
f370dfa
remove resizing on update message callback (#2818)
andriimaistruk Feb 15, 2022
a6e2949
smoother fix (#2822)
padhupradheep Feb 15, 2022
d916d52
Dynamic parameter setting of costmap layers (inflation/static/voxel) …
indraneelpatil Feb 17, 2022
0a961df
restrict test_msgs to test_dependency (#2827)
alsora Feb 20, 2022
4dad9b7
remove unused odometry smoother in bt navigator (#2829)
alsora Mar 1, 2022
6ac009d
fix: modify build failure of nav2 bt navigator (#2836)
wep21 Mar 1, 2022
360abde
Add all action options (#2834)
Mar 1, 2022
b232341
edge fix (#2840)
jwallace42 Mar 8, 2022
0c14914
Launch single (#2837)
jwallace42 Mar 8, 2022
7f0e087
adding stable dynamic reconfigure behavior (#2843)
SteveMacenski Mar 9, 2022
a9744bd
Update RPP readme
SteveMacenski Mar 9, 2022
643bb0f
Adding theta* to the main packages list
SteveMacenski Mar 10, 2022
8190716
Ci focal rolling (#2851)
Aposhian Mar 18, 2022
38ccddc
Fix large angle changes in lattice primitive generator (#2831)
mattbooker Mar 21, 2022
e5eaafa
Fix: bt_navigator crashes on lc transitions (#2848)
Mar 21, 2022
ee2efb6
fix-collision checker must capture lethal before unknow (#2854)
HosseinSheikhi Mar 21, 2022
7872c73
Bound closest pose by costmap and turnaround point (#2812)
Aposhian Mar 21, 2022
e173995
Apply raytraceLine 3D fixes to its 2D version (#2857)
AlexeyMerzlyakov Mar 22, 2022
95e76c6
adding Bt to cancel wait, spin and backup (#2856)
padhupradheep Mar 22, 2022
1c161c4
Fix cpplint include order errors (#2860)
Aposhian Mar 22, 2022
8a007c8
Linter fixes (#2861)
padhupradheep Mar 22, 2022
ef9b437
Additional revision for costmap_bresenham_2d test (#2862)
AlexeyMerzlyakov Mar 23, 2022
306f061
Removing old unused function and comment (#2863)
SteveMacenski Mar 23, 2022
0dc6950
fix core linting errors (#2864)
SteveMacenski Mar 24, 2022
eab2aa6
euclidean distance: by default use 2d mode (#2865)
vinnnyr Mar 24, 2022
44b7327
add the missing ports and description for the XML nodes (#2866)
padhupradheep Mar 25, 2022
db64f5a
Fixed first_map_only parameter issue (#2870)
hardesh Mar 29, 2022
2000ef9
Mixed replan (#2841)
jwallace42 Mar 29, 2022
ad34693
Adding a new BT node Is_path_longer_on_approach (#2802)
padhupradheep Mar 30, 2022
b48ba73
Adding Simple Path Smoother Plugin (#2875)
SteveMacenski Mar 30, 2022
3ecb4d0
Rpp interpolation (#2872)
Aposhian Mar 31, 2022
609342f
adding smoother to python API (#2881)
SteveMacenski Mar 31, 2022
64b3308
Better Costmap Error Message (#2884)
DLu Apr 4, 2022
a5a3735
Linter fixes (#2879)
padhupradheep Apr 4, 2022
c8f6799
nav2_controller: stop mutex from deadlocking on parameter change (#2858)
dkuenster Apr 4, 2022
bcc9aff
Is path valid test (#2874)
jwallace42 Apr 4, 2022
97d3149
Fix build issue on obstacle layer (#2886)
SteveMacenski Apr 4, 2022
4234a6e
Recovery to behavior (#2867)
jwallace42 Apr 4, 2022
89bceb7
add getRobotRadius() in costmap_2d_ros (#2896)
doisyg Apr 7, 2022
b1ee0d2
Add clock time to costmaps (#2899)
charlielito Apr 7, 2022
70da814
update (#2901)
padhupradheep Apr 8, 2022
ff420db
fix bt potential risk problem (#2907)
sci-42ver Apr 11, 2022
d3ce800
update goal checker plugin to plugins (#2909)
SteveMacenski Apr 12, 2022
3651b4b
Delete param dumper (#2908)
SteveMacenski Apr 12, 2022
21a146a
adding linting fix (#2911)
SteveMacenski Apr 12, 2022
079bf78
fixed is path valid test (#2914)
jwallace42 Apr 14, 2022
ad3fb48
Allow usage of std::string in searchAndGetParam() (#2918)
roncapat Apr 15, 2022
3e4dd6f
Lifecycle manager with respawn option + adding respawn options in lau…
SteveMacenski Apr 18, 2022
d70287d
Fix various issues found while compiling against Rolling on Ubuntu 22…
clalancette Apr 27, 2022
02133bd
Clean up action clients in nav2_simple_commander (#2924)
m2-farzan Apr 27, 2022
7d04fc5
snake_case to camelCase (#2928)
SteveMacenski Apr 27, 2022
f5dfc37
removed linear kinematic params from RPP Readme (#2930)
relffok Apr 29, 2022
da602f8
Obstacle layer dynamic parameters (#2922)
AadityaRavindran May 2, 2022
54323dc
Drive on heading (#2898)
jwallace42 May 4, 2022
febb12a
Added mutex to prevent SEGFAULT on map change in AMCL (#2933)
mrmara May 5, 2022
fec6329
🛠️ Bump docker/setup-buildx-action from 1 to 2 (#2937)
dependabot[bot] May 5, 2022
17624c6
🛠️ Bump docker/login-action from 1 to 2 (#2936)
dependabot[bot] May 5, 2022
ec4ba98
🛠️ Bump docker/build-push-action from 2 to 3 (#2935)
dependabot[bot] May 6, 2022
d2ec874
nav2_util: don't export test_msgs dependency (#2943)
lopsided98 May 9, 2022
14f02a4
Dynamic reconfigure for AMCL (#2932)
padhupradheep May 9, 2022
af3ff35
Ceres smoother (#2753)
robotechvision May 10, 2022
d45e380
Fixing link styling
SteveMacenski May 10, 2022
ceda5a9
Adding configuration documentation
SteveMacenski May 10, 2022
29e4c42
Added goal accepted check before flagging navigator as running (#2949)
mitchradams May 13, 2022
432b76d
Added behaviour_tree as input to action nodes (#2952)
May 16, 2022
cfd9cec
[nav2_behavior_tree] * Add missing headers on `decorator/path_longer_…
salmagro May 19, 2022
eb53c28
Fixed lifecycle manager startup (#2917) (#2960)
robotechvision May 20, 2022
719b545
Ci jammy rolling (#2852)
ruffsl May 25, 2022
e581eef
reduce amcl_node nodes (#2483)
gezp May 26, 2022
7780c35
fix tf_broadcaster in amcl_node (#2973)
gezp May 27, 2022
a237053
goal checker plugins in CI system tests correct type (#2974)
SteveMacenski May 27, 2022
35561ba
fix some tests (#2962)
wep21 May 27, 2022
32d1004
Added costmap in goal_checker plugins (#2965)
hardesh May 27, 2022
80d7d0a
Allow access to action feedback in nav2_behavior_tree::BtActionNode::…
naiveHobo May 27, 2022
4d596b9
Change all shared_ptr references to shared_ptr (#2976)
naiveHobo May 31, 2022
3bd773c
fix: correct curvature signal on RPP (#2979)
afonsofonbraga May 31, 2022
bd31820
use unique_ptr for map_update_thread (#2977)
gezp Jun 1, 2022
b5989fd
Remove gazebo ros messages and use binary form (#2990)
SteveMacenski Jun 1, 2022
7efb6ba
Add diagnostics (#2986)
Jun 1, 2022
9bb37c6
Odometery calibration (#2934)
jwallace42 Jun 2, 2022
28ce7e8
Reduce costmap_2d_ros nodes (#2489)
gezp Jun 2, 2022
30048b4
remove LifecycleNode's argument use_rclcpp_node (#2993)
gezp Jun 2, 2022
12b0fcf
add response to the service on completion (#2992)
padhupradheep Jun 2, 2022
97cb138
Provide bt result (#2998)
mitchradams Jun 3, 2022
51f58ee
bumping to 1.1.0
SteveMacenski Jun 3, 2022
22fa300
Bump theta* to 1.1.0 that missed regex for the rest
SteveMacenski Jun 3, 2022
a9cd2dc
Fix size_t format specifier (#3003)
m2-farzan Jun 6, 2022
f00d468
clear up params file (#3004)
gezp Jun 6, 2022
dd38f3a
Bt test fix (#2999)
jwallace42 Jun 6, 2022
313caee
linting fix (#3007)
gezp Jun 7, 2022
c1409a2
Add nav2_constrained_smoother to metapackage
SteveMacenski Jun 7, 2022
b70db7c
adding humble release to table (#3008)
SteveMacenski Jun 7, 2022
a86e003
Fix for costmap nodes lifecycle status (#3009)
arshadlab Jun 8, 2022
94b9695
Get parameters on configure transition addressing #2985 (#3000)
MartiBolet Jun 9, 2022
1636b91
fix: wrong input type in navigate_to_pose_action.hpp and navigate_to_…
shoufei403 Jun 13, 2022
6f31d59
Nav2 Velocity Smoother (#2964)
SteveMacenski Jun 13, 2022
7da7282
Fixing rebase issue
SteveMacenski Jun 13, 2022
0e287c1
adding plugin type for static in local + removing unused print (#3021)
SteveMacenski Jun 16, 2022
b191b52
removed extra includes (#3026)
jwallace42 Jun 19, 2022
08e558f
remove extra sub (#3025)
jwallace42 Jun 19, 2022
6b2f1d9
Fix missing dependency on nav2_velocity_smoother (#3031)
hodnajit Jun 21, 2022
bccf6d6
adding timeout for action client initialization (#3029)
vinnnyr Jun 22, 2022
99bec08
- Modified findVelocitySignChange method to transform cusp into robot…
stevenbrills Jun 23, 2022
88fab1a
cleanup warnings (#3028)
jwallace42 Jun 23, 2022
14a63c1
Update mergify.yml
SteveMacenski Jun 24, 2022
28d16ab
Draft: Added GoalUpdatedController BT plugin node (#3044)
relffok Jun 28, 2022
f9d9750
installing plugins folder of nav2_behaviors package (#3051)
SrijaneeBiswas Jun 28, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ _commands:
- restore_cache:
name: Restore Cache << parameters.key >>
keys:
- "<< parameters.key >>-v8\
- "<< parameters.key >>-v11\
-{{ arch }}\
-{{ .Branch }}\
-{{ .Environment.CIRCLE_PR_NUMBER }}\
-{{ checksum \"<< parameters.workspace >>/lockfile.txt\" }}"
- "<< parameters.key >>-v8\
- "<< parameters.key >>-v11\
-{{ arch }}\
-main\
-<no value>\
Expand All @@ -58,7 +58,7 @@ _commands:
steps:
- save_cache:
name: Save Cache << parameters.key >>
key: "<< parameters.key >>-v8\
key: "<< parameters.key >>-v11\
-{{ arch }}\
-{{ .Branch }}\
-{{ .Environment.CIRCLE_PR_NUMBER }}\
Expand Down
9 changes: 9 additions & 0 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
pull_request_rules:
- name: backport to humble at reviewers discretion
conditions:
- base=main
- "label=backport-humble"
actions:
backport:
branches:
- humble

- name: backport to galactic at reviewers discretion
conditions:
- base=main
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/update_ci_image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
- name: Build and push
if: steps.config.outputs.trigger == 'true'
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
pull: true
push: true
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,13 @@ install
# Python artifacts
__pycache__/
*.py[cod]
.ipynb_checkpoints

sphinx_doc/_build

# CLion artifacts
.idea
cmake-build-debug/

# doxygen docs
doc/html/
62 changes: 34 additions & 28 deletions README.md

Large diffs are not rendered by default.

22 changes: 19 additions & 3 deletions nav2_amcl/include/nav2_amcl/amcl_node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,26 @@ class AmclNode : public nav2_util::LifecycleNode
*/
nav2_util::CallbackReturn on_shutdown(const rclcpp_lifecycle::State & state) override;

/**
* @brief Callback executed when a parameter change is detected
* @param event ParameterEvent message
*/
rcl_interfaces::msg::SetParametersResult
dynamicParametersCallback(std::vector<rclcpp::Parameter> parameters);

// Dynamic parameters handler
rclcpp::node_interfaces::OnSetParametersCallbackHandle::SharedPtr dyn_params_handler_;

// Since the sensor data from gazebo or the robot is not lifecycle enabled, we won't
// respond until we're in the active state
std::atomic<bool> active_{false};

// Dedicated callback group and executor for services and subscriptions in AmclNode,
// in order to isolate TF timer used in message filter.
rclcpp::CallbackGroup::SharedPtr callback_group_;
rclcpp::executors::SingleThreadedExecutor::SharedPtr executor_;
std::unique_ptr<nav2_util::NodeThread> executor_thread_;

// Pose hypothesis
typedef struct
{
Expand Down Expand Up @@ -132,7 +148,7 @@ class AmclNode : public nav2_util::LifecycleNode
bool first_map_only_{true};
std::atomic<bool> first_map_received_{false};
amcl_hyp_t * initial_pose_hyp_;
std::recursive_mutex configuration_mutex_;
std::recursive_mutex mutex_;
rclcpp::Subscription<nav_msgs::msg::OccupancyGrid>::ConstSharedPtr map_sub_;
#if NEW_UNIFORM_SAMPLING
static std::vector<std::pair<int, int>> free_space_indices;
Expand All @@ -155,7 +171,8 @@ class AmclNode : public nav2_util::LifecycleNode
* @brief Initialize incoming data message subscribers and filters
*/
void initMessageFilters();
std::unique_ptr<message_filters::Subscriber<sensor_msgs::msg::LaserScan>> laser_scan_sub_;
std::unique_ptr<message_filters::Subscriber<sensor_msgs::msg::LaserScan,
rclcpp_lifecycle::LifecycleNode>> laser_scan_sub_;
std::unique_ptr<tf2_ros::MessageFilter<sensor_msgs::msg::LaserScan>> laser_scan_filter_;
message_filters::Connection laser_scan_connection_;

Expand Down Expand Up @@ -238,7 +255,6 @@ class AmclNode : public nav2_util::LifecycleNode
*/
static pf_vector_t uniformPoseGenerator(void * arg);
pf_t * pf_{nullptr};
std::mutex pf_mutex_;
bool pf_init_;
pf_vector_t pf_odom_pose_;
int resample_count_{0};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
*
*/

#ifndef DIFFERENTIAL_MOTION_MODEL_HPP
#define DIFFERENTIAL_MOTION_MODEL_HPP
#ifndef NAV2_AMCL__MOTION_MODEL__DIFFERENTIAL_MOTION_MODEL_HPP_
#define NAV2_AMCL__MOTION_MODEL__DIFFERENTIAL_MOTION_MODEL_HPP_

#include <sys/types.h>
#include <math.h>
Expand All @@ -44,4 +44,4 @@ class DifferentialMotionModel : public nav2_amcl::MotionModel
double alpha1_, alpha2_, alpha3_, alpha4_, alpha5_;
};
} // namespace nav2_amcl
#endif
#endif // NAV2_AMCL__MOTION_MODEL__DIFFERENTIAL_MOTION_MODEL_HPP_
4 changes: 2 additions & 2 deletions nav2_amcl/include/nav2_amcl/motion_model/motion_model.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
#define NAV2_AMCL__MOTION_MODEL__MOTION_MODEL_HPP_

#include <string>
#include <memory>

#include "nav2_amcl/pf/pf.hpp"
#include "nav2_amcl/pf/pf_pdf.hpp"
#include <memory>

namespace nav2_amcl
{
Expand Down Expand Up @@ -55,7 +56,6 @@ class MotionModel
* @param delta change in pose in odometry update
*/
virtual void odometryUpdate(pf_t * pf, const pf_vector_t & pose, const pf_vector_t & delta) = 0;

};
} // namespace nav2_amcl

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
*
*/

#ifndef DIFFERENTIAL_MOTION_MODEL_HPP
#define DIFFERENTIAL_MOTION_MODEL_HPP
#ifndef NAV2_AMCL__MOTION_MODEL__OMNI_MOTION_MODEL_HPP_
#define NAV2_AMCL__MOTION_MODEL__OMNI_MOTION_MODEL_HPP_

#include <sys/types.h>
#include <math.h>
Expand All @@ -44,4 +44,4 @@ class OmniMotionModel : public nav2_amcl::MotionModel
double alpha1_, alpha2_, alpha3_, alpha4_, alpha5_;
};
} // namespace nav2_amcl
#endif
#endif // NAV2_AMCL__MOTION_MODEL__OMNI_MOTION_MODEL_HPP_
20 changes: 20 additions & 0 deletions nav2_amcl/include/nav2_amcl/pf/eig3.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Player - One Hell of a Robot Server
* Copyright (C) 2000 Brian Gerkey & Kasper Stoy
* gerkey@usc.edu kaspers@robotics.usc.edu
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
/* Eigen-decomposition for symmetric 3x3 real matrices.
Public domain, copied from the public domain Java library JAMA. */

Expand Down
41 changes: 41 additions & 0 deletions nav2_amcl/include/nav2_amcl/portable_utils.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Copyright (c) Samsung Research America
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef NAV2_AMCL__PORTABLE_UTILS_HPP_
#define NAV2_AMCL__PORTABLE_UTILS_HPP_

#include <stdlib.h>

#ifdef __cplusplus
extern "C" {
#endif

#ifndef HAVE_DRAND48
// Some system (e.g., Windows) doesn't come with drand48(), srand48().
// Use rand, and srand for such system.
static double drand48(void)
{
return ((double)rand()) / RAND_MAX;// NOLINT
}

static void srand48(long int seedval)// NOLINT
{
srand(seedval);
}
#endif

#ifdef __cplusplus
}
#endif

#endif // NAV2_AMCL__PORTABLE_UTILS_HPP_
2 changes: 1 addition & 1 deletion nav2_amcl/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>nav2_amcl</name>
<version>1.0.0</version>
<version>1.1.0</version>
<description>
<p>
amcl is a probabilistic localization system for a robot moving in
Expand Down
Loading