-
Notifications
You must be signed in to change notification settings - Fork 46
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
mqtt_client doesn't create generic publisher at runtime change of message type #45
Comments
I can reproduce the issue. In my case, the mqtt_client errors as soon as the message type changes, no restart needed.
I'm afraid that switching the message type is currently not supported in ROS 2. Feel free to open a pull request if you decide to fix the issue in source code yourself. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
when we change the message type at runtime no logs are seen from mqtt_client node, after restart the client it throws an error: "[mqtt_client-1] [ERROR] [1702010603.069871187] [mqtt_client]: Failed to create generic subscriber: could not create subscription: invalid allocator, at ./src/rcl/subscription.c:218"
After restarting the mqtt_client again it works successfully but the issue is I have to restart mqtt_client twice.
ROS Distro: humble, using Docker
we want to change the message at runtime without restarting the mqtt_client , How we can achieve the same ?
The text was updated successfully, but these errors were encountered: