add roslibrust ros1 message support #24
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It's a copy paste of the rosrust code but with Time secs/nsecs changed to fit Time in roslibrust.
But I can't get it to work in an example here: https://github.com/lucasw/transform_point_cloud/blob/96595aa00a58b882a40f4cba7d2d33e278a17bb2/src/bin/transform_point_cloud2.rs
But then I get
The roslibrust codegen macro created messages for rpcl2, and then again for transform_point_cloud- I've done something similar with roslibrust and https://github.com/lucasw/rustros_tf/tree/roslibrust and https://github.com/lucasw/tf_demo/blob/old_tf_to_new_tf/src/bin/tf2tf.rs and didn't encounter anything like this.
If I don't do any codegen in my code and try to use
ros_pointcloud2::prelude::sensor_msgs::PointCloud2
then I get