-
Notifications
You must be signed in to change notification settings - Fork 125
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose Contacts through ROS bridge #175
Conversation
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.
Thanks for the PR! CI is unhappy:
In file included from /github/home/ws/src/ros_ign/ros_ign_image/src/image_bridge.cpp:19:
/github/home/ws/install/ros_ign_bridge/include/ros_ign_bridge/convert.hpp:30:10: fatal error: ros_ign_interfaces/msg/entity.hpp: No such file or directory
30 | #include <ros_ign_interfaces/msg/entity.hpp>
|
@@ -3,4 +3,4 @@ ros_ign_interfaces/Entity collision2 # Contact collision2 | |||
geometry_msgs/Vector3[] positions # List of contact position | |||
geometry_msgs/Vector3[] normals # List of contact normals | |||
float64[] depths # List of penetration depths | |||
geometry_msgs/Wrench[] wrenches # List of forces/torques | |||
ros_ign_interfaces/JointWrench[] wrenches # List of joint wrenches including forces/torques |
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'll just note that changing the definition of a message breaks downstream users, so we need to be mindful about it. Since this message isn't used by anything in this repository yet, and this is targeting the ros2
branch, I think it's a good move though 馃憤
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.
Thanks for the heads up!
@@ -0,0 +1,8 @@ | |||
std_msgs/Header header # Time stamp |
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 know this new message is matching ignition::msgs::JointWrench
, but I'll just leave a note that we should be modernizing this in the future to use clearer simulation concepts (i.e. link
or collision
instead of body
and ignition::msgs::Entity
instead of id
+ name
).
I'd suggest preemptively doing that here now even though it won't match the Ignition message, but I don't have a strong preference.
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 am OK changing this and also the proto possibly to do this more high level. Do you mind if I do that in another PR and just open an issue to track? I am also down to change any other types as well, I can take care of them in that future PR.
Should be fixed. |
Signed-off-by: Vatan Aksoy Tezer <vatanaksoytezer@gmail.com>
1d8e027
to
72b8bc0
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.
Thanks again, this looks great 馃憤
Signed-off-by: Vatan Aksoy Tezer vatanaksoytezer@gmail.com
馃帀 New feature
Closes #174
Summary
The ultimate goal was to expose contact sensor messages through bridge. This adds a new message type to
ros_ign_interfaces
: JointWrench and adds six different types toros_ign_bridge
, namely:I added UInt32 thinking I would need it but it turns out I don't but nevertheless it's just a new type for bridge 馃帀
Test it
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge
馃敻馃敻馃敻馃敻馃敻馃敻馃敻馃敻馃敻馃敻馃敻馃敻馃敻馃敻馃敻馃敻馃敻馃敻馃敻馃敻馃敻馃敻馃敻馃敻馃敻馃敻馃敻馃敻馃敻馃敻馃敻馃敻馃敻馃敻馃敻馃敻馃敻