Skip to content

Conversation

@mhpanah
Copy link
Contributor

@mhpanah mhpanah commented Aug 16, 2018

Completed phase 1 of porting AMCL ROS1 package to ROS2. This phase has all the functionalities except dynamic reconfigure, rosbag, and laser scan subscriber which is equivalent to https://github.com/ros2/navigation/pull/9/files.

@mhpanah mhpanah requested review from a user, bpwilcox, mjeronimo, mkhansenbot and orduno August 16, 2018 19:30
@@ -0,0 +1,44 @@
{
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops. This file probably shouldn't be checked in.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.


add_executable(amcl src/main.cpp src/amcl_node.cpp)

target_link_libraries(amcl
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unnecessary when using ament_target_dependencies below, I believe.

include_directories(include ${Boost_INCLUDE_DIRS})
include_directories(
include
../util/include
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of adding util to the includes and link directories lines, we should be able to do a find_package(util REQUIRED)

The include and link directories will automatically be added by the ament_target_dependencies line. If this doesn't work, we should fix the util package.

LIBRARY DESTINATION lib
RUNTIME DESTINATION bin
)

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to add these lines here:

ament_export_include_directories(include)
ament_export_libraries(amcl amcl_sensors amcl_map amcl_pf)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

if (!pf_get_cluster_stats(pf_, hyp_count, &weight, &pose_mean, &pose_cov))
{
ROS_ERROR("Couldn't get stats on cluster %d", hyp_count);
RCLCPP_ERROR(get_logger(), "Couldn't get stats on cluster %d", hyp_count);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be a name associated with the logger, IMHO. I'd go with something like get_logger("amcl") This applies everywhere.

@mkhansenbot
Copy link
Collaborator

@mhpanah - this PR should be for the master branch, since it really has no dependencies on the ros2_devel branch. Can you re-submit to master please?

@mhpanah mhpanah changed the title Ros2 devel AMCL Port Aug 17, 2018
@mkhansenbot
Copy link
Collaborator

@mhpanah - can we close this now since you have the PR to the master branch?

SteveMacenski pushed a commit that referenced this pull request Aug 20, 2020
* Add costmap downsampler - fixes SteveMacenski#4

* Improve costmap downsampler implementation

Summary:
- Optimized stack allocations
- Use existing object for publishing costmap

* Make downsampler work with time-variant costmap size

* Move downsampled costmap publisher to downsampler

* Add publisher to member list and use const-references where possible

* Add downsampling factor as a param when calling downsample

* Optimize for-loops during cost assignment

* Use break instead of continue for exiting set cost loops

* Revert "Use break instead of continue for exiting set cost loops"

This reverts commit 94aac6d.
ghost referenced this pull request in logivations/navigation2 Mar 7, 2022
* new bt for obstacle replanning

* fix according to comments

* added RetryUntilSuccesful, fixed RCLCPP_ERROR logger;

Co-authored-by: sofia.semianchuk <[email protected]>
mizdan added a commit to modulab/navigation2 that referenced this pull request Jun 8, 2022
mini-1235 pushed a commit to mini-1235/navigation2 that referenced this pull request Feb 5, 2025
* adding navfn and planner server param descriptions

* Update configuration/packages/configuring-navfn.rst

Co-authored-by: Marwan Taher <[email protected]>

* Update configuration/packages/configuring-navfn.rst

Co-authored-by: Marwan Taher <[email protected]>
Forsyth-Creations pushed a commit to Forsyth-Creations/navigation2 that referenced this pull request Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants