-
Notifications
You must be signed in to change notification settings - Fork 96
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
Support both geometry_msgs::TwistStamped and geometry_msgs::Twist as inputs and output #52
base: rolling
Are you sure you want to change the base?
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
stamped
In this YAML config file,
joystick
will subscribe togeometry_msgs::Twist
topic andnavigation
will subscribe togeometry_msgs::TwistStamped
topic, seestamped
For output,
output_stamped
parameter is used to define whether you'd like to output stamped topic. A lean version of a launch file would probably be