Support both geometry_msgs::TwistStamped and geometry_msgs::Twist as inputs and output#52
Support both geometry_msgs::TwistStamped and geometry_msgs::Twist as inputs and output#525730289021-NN wants to merge 7 commits intoros-teleop:rollingfrom
Conversation
|
I just tested this and it works well for my use case, the ability to specify stamped/unstamped for each input and output separately is really helpful for incremental migration of components! |
|
hey @5730289021-NN , great PR! I've merged #50 this morning as a first step toward TwistStamped support but I think it'd be useful to incorporate your PR as well. First, I'd like to state for the record that a simple launch file example is one that isn't written in Python ;) I'd like to soon change things such that the default would be to use stamped messages and opt-in for non-stamped. With merging #50 I caused a lot of conflicts on this PR... would you mind rebasing please? |
more concise, stamped option is for twist only Fix wording & location fix launch file Fix 'output_stamped' has already been declared remove accidently uploaded .vscode
2d984e9 to
4d723ef
Compare
|
@bmagyar I've squashed my commits and rebased on top of the upstream. |
|
Hi all, I think this is a great PR idea as I am currently using ROS2 Jazzy and am running into issues with TwistStamped vs Twist messages. However, I build the code from the PR (https://github.com/FIBO-Engineer/twist_mux/tree/stamped-support) and am having many issues:
This can be fixed by changing
I am considering reworking this PR or creating a new one in either twist_mux or teleop_twist_joy which would allow the user to set a parameter that could add stamps to unstamped twists. It seems to me that the time-stamping could be done here in twist_mux, or it could be done in teleop_twist_joy (or both). Which should I do? Is this a useful contribution to the project? |
|
hi @5730289021-NN , I've just merged #55 and was about to resolve the conflict on your branch but I don't have permissions. There's a part where you unticked the "allow maintainers to edit branch" or used different default settings. Please either resolve the conflict or add permissions so I can fix it up. |
|
@bmagyar I don't see "Allow maintainers to edit branch" on this PR page. To mitigate this issue, I've granted you direct access to that repo. This should fix the issue. |
This PR provides the versatile way for one who'd like to select whether each inputs or output should be stamped. It is similar to #50
For input, if you'd like to subscribe to a stamped topic, you can define via
stampedIn this YAML config file,
joystickwill subscribe togeometry_msgs::Twisttopic andnavigationwill subscribe togeometry_msgs::TwistStampedtopic, seestampedFor output,
output_stampedparameter is used to define whether you'd like to output stamped topic. A lean version of a launch file would probably be