Skip to content

Convert all moveit_msg messages namespace - #30

Merged
davetcoleman merged 2 commits into
moveit:masterfrom
davetcoleman:adapt_moveit_msgs
Mar 6, 2019
Merged

davetcoleman merged 2 commits into
moveit:masterfrom
davetcoleman:adapt_moveit_msgs

Conversation

@davetcoleman

Copy link
Copy Markdown
Member

I wrote a python script to assist in the conversion

@vmayoral

Copy link
Copy Markdown
Contributor

Same situation happening across different files.

@davetcoleman

Copy link
Copy Markdown
Member Author

@vmayoral do you approve this PR?

* @return A full constraint message containing both constraints
*/
moveit_msgs::Constraints constructGoalConstraints(const std::string& link_name, const geometry_msgs::PoseStamped& pose,
moveit_msgs::msg::Constraints constructGoalConstraints(const std::string& link_name, const geometry_msgs::PoseStamped& pose,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same here

Suggested change
moveit_msgs::msg::Constraints constructGoalConstraints(const std::string& link_name, const geometry_msgs::PoseStamped& pose,
moveit_msgs::msg::Constraints constructGoalConstraints(const std::string& link_name, const geometry_msgs::msg::PoseStamped& pose,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

outside scope of this PR

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Note this approach is fundamentally different from the one we're following to get a minimum viable prototype (going module by module and ensuring that changes compile and make sense from a ROS2 perspective). Anyhow, contributions are valid and will save us time.

Thanks for putting time into this.

@vmayoral

Copy link
Copy Markdown
Contributor

You probably may need to review the script @davetcoleman

@davetcoleman

Copy link
Copy Markdown
Member Author

As described in the title of the PR, this only addressed moveit_msg messages. Because it touches 182 files, I thought the scope was already complex enough. There are still many many message types that I have not yet converted, but they are outside the scope of this PR.

The reason I didn't do all at once is because I had to manually find-replace every action and service based on exact name, because there's no way to easily tell if they are a message, service, or action

@mlautman mlautman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks valid. I would consider automating the change from #include <moveit_msgs/___.h> to #include <moveit_msgs/msg/___.h> in this same PR. I am approving this but I don't think it should be merged in until after the open MoveIt1 PR's have been closed since it will likely break a lot of those

@davetcoleman

Copy link
Copy Markdown
Member Author

I don't think it should be merged in until after the open MoveIt1 PR's have been closed since it will likely break a lot of those

By this argument, we shouldn't be working on MoveIt 2 at all, but we are. I don't think there will be that many conflicts, actually.

I would consider automating the change from #include <moveit_msgs/.h> to #include <moveit_msgs/msg/.h> in this same PR.

There are a lot of additional things that need to be done across the code base but I chose to keep this PR very simple as a demonstrator of how we can make brute-force changes across the code base. I do not have time to add any additional migration "features" to this PR so either we abandon it or we accept the progress it does make to the codebase.

@vmayoral

vmayoral commented Mar 5, 2019

Copy link
Copy Markdown
Contributor

@vmayoral approves this pull request.

Merging changes with our master branch of development, I can confirm that it compiles (at least it does in my local machine). I'd say we wait until https://travis-ci.org/AcutronicRobotics/moveit2/builds/502170373?utm_source=github_status&utm_medium=notification finishes (should take about an hour). Provided CI passes, I'd go forward with these changes.

@davetcoleman

Copy link
Copy Markdown
Member Author

It passed.

@davetcoleman
davetcoleman merged commit 8dddba4 into moveit:master Mar 6, 2019
@davetcoleman
davetcoleman deleted the adapt_moveit_msgs branch March 6, 2019 05:33
MikeWrock pushed a commit to MikeWrock/moveit2 that referenced this pull request Aug 15, 2022
* Kinematic: right_arm->panda_arm

* reordering, and adding blurbs on RobotState as well as RobotModel

* adding image to top of tutorial
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