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
Porting to ROS2 #48
Porting to ROS2 #48
Conversation
1287a10
to
09c78ea
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I left some comments to clarify
const std::string md5 = Md5().value(); | ||
const std::string datatype = rosidl_generator_traits::data_type<M>(); | ||
// TODO: Get MD5Sum value | ||
// typedef typename ros::message_traits::MD5Sum<M> Md5; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if md5 will be supported and also I didn't see any other corresponding trait. But it seems like hashing is critical here. Couldn't we just hash the serialized message type string using std::hash
https://en.cppreference.com/w/cpp/utility/hash?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea! I found a method from openssl
to get the md5sum string from the message type. But I think this is still not equal to the function on ros1 that returns the hash number of the message definition. I'm not sure if this is enough for the application.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Are you sure this is different? ROS1 also seems to hash the message type, but then again this check should actually compare if the message definition matches. For now this should work though, as this should really just protect against using mismatching message versions. Maybe we could throw a warning about this.
d29dc9a
to
2ce731d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@RoboticsYY Looks good to me, if you think this is ready I'll merge this.
2a905be
to
459ca95
Compare
689101d
to
48259c9
Compare
a0ee1f7
to
506449f
Compare
.travis.yml
Outdated
@@ -1,6 +1,6 @@ | |||
# This config file for Travis CI utilizes https://github.com/ros-planning/moveit_ci/ package. | |||
sudo: required | |||
dist: trusty | |||
dist: xenial |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dist: xenial | |
dist: bionic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not critical, though
@RoboticsYY These are really a lot of commits. Are you planning to group them in chunks? Otherwise I would squash-merge |
@henningkayser It's OK for me to make a squash-merge. |
This PR intends to port the
warehouse_ros
package to ROS2.The migration involves:
tf
totf2
.