Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AMCL Port #23

Closed
wants to merge 6 commits into from
Closed

AMCL Port #23

wants to merge 6 commits into from

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.

@@ -0,0 +1,44 @@
{
Copy link
Contributor

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
Contributor

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
Contributor

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.

ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin
)

Copy link
Contributor

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.

@@ -1282,24 +1145,24 @@ AmclNode::laserReceived(const sensor_msgs::LaserScanConstPtr& laser_scan)
pf_matrix_t pose_cov;
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
Contributor

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 <sofia.semianchuk@logivations.com>
mizdan added a commit to modulab/navigation2 that referenced this pull request Jun 8, 2022
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.

3 participants