-
Notifications
You must be signed in to change notification settings - Fork 636
Force converter to be called when changing settings #744
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
base: develop
Are you sure you want to change the base?
Conversation
Adds a new input to the buildRenderState() function called `forceConversion`. As the name implies, any topic in this set will be forcefully reconverted on the current frame. Right now, its only being used after the callback for a given message converter, but it could be a useful facility to expose to the user in the render state at some point. Should fix lichtblick-suite#503.
|
Hi @cadkin thank you very much for your PR. we will review it and in case we have any questions we will comment here. |
|
Hi @cadkin, I tried out your changes with our extension (asam-osi-converter) to give some feedback. We'd be very happy if this feature makes it to the release. But I found some issues:
I verified that (3) is not a bug in our extension: The following screenshot shows the moment of switching the toggle button for
I guess, it's probably not an issue of this PR but rather an underlying issue in lichtblick? The converter is actually called as expected. Maybe that's something you could check before merging this, @carolinabamorim? |
|
we will check it, thanks for the heads-up @thomassedlmayer |
|
Hey @thomassedlmayer, I appreciate you taking a look.
I would hazard a guess that you're right, this does seem like an internal issue. I can't replicate it however; I looked though your extension and it seems like we are doing mostly the same things. The only meaningful difference I see is that we are converting a ROS2 message, were as you seem to be using an actual schema (
Again, I cannot replicate this. See below for the behavior I observe: out.mp4Your use case is much more complicated than mine, but if it is useful I've pushed up a copy of our ROS2 message package + extension. Here's the most relevant code. I'm not sure how helpful I can be, but if there is something I can do let me know. |


I'm not sure if it was documented anywhere, but it seems like the
handlerparameter for message converters was not getting called. I found a fix to that and decided to see about fixing the re-calling of the converter itself as well.Small disclaimer: I am not a web developer, I mostly do C++. If something is wrong please let me know!
User-Facing Changes
registerMessageConverterhandlercallback will now be called.Description
Should close #503.
Checklist