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

Port kinematics_plugin_loader to ROS2 #107

Merged
merged 4 commits into from
Dec 6, 2019

Conversation

JafarAbdi
Copy link
Contributor

Description

This is a continuation of PR#74

I did the same as in this PR#104 for applying the changes

@JafarAbdi
Copy link
Contributor Author

This PR depends on PR#104

std::string ksolver_param_name;
bool found = nh.searchParam(base_param_name + "/kinematics_solver", ksolver_param_name);
if (!found || !nh.hasParam(ksolver_param_name))
std::string ksolver_param_name = base_param_name + "/kinematics_solver";
Copy link
Member

Choose a reason for hiding this comment

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

This whole part seems overly complicated to me (it already was in the original implementation). But it's probably not the point for premature optimization here. Could you add a TODO: revise parameter lookup here so we can track what parameters we need to test/improve in the future?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Totally agreed with this point - I added the TODO but I still believe that we should use "." as a delimiter, for example, please take a look at how Navigation2 loads the parameters yaml - cpp

Copy link
Member

@henningkayser henningkayser Oct 31, 2019

Choose a reason for hiding this comment

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

I think the yaml you linked doesn't belong to the cpp file. What they did is use dynamic_reconfigure to generate the parameters: https://github.com/ros-planning/navigation2/blob/6bfa8c48ea0291fff540eb7aead6e5e511130bd7/nav2_costmap_2d/cfg/ObstaclePlugin.cfg. Normal parameters use forward slashes as namespace separators, at least I didn't find anything that supports something else: https://design.ros2.org/articles/ros_parameters.html https://design.ros2.org/articles/topic_and_service_names.html.

MoveIt2 Beta - Phase 1 automation moved this from Review in progress to Reviewer approved Oct 31, 2019
Copy link
Member

@henningkayser henningkayser left a comment

Choose a reason for hiding this comment

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

Nice work! ;)

Copy link
Member

@henningkayser henningkayser left a comment

Choose a reason for hiding this comment

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

Looks good! Just some minor changes, then lgtm

@henningkayser henningkayser merged commit f760454 into moveit:master Dec 6, 2019
MoveIt2 Beta - Phase 1 automation moved this from Reviewer approved to Done Dec 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants