Skip to content
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

set_control / set control_value : how to use callbacks #114

Open
bbdb68 opened this issue Apr 19, 2022 · 1 comment
Open

set_control / set control_value : how to use callbacks #114

bbdb68 opened this issue Apr 19, 2022 · 1 comment

Comments

@bbdb68
Copy link

bbdb68 commented Apr 19, 2022

Hello, I am using meshcat from c++ and this is really a nice tool.

I try to use the set_control and set_control_value api, but I have an issue with callbacks : the callback (only console.log('test value='+value); at the monent is called when set_control is issued, but not when I call set_control_value (BTW the value is correctly set), and also is it not called when I move the slider as a user.

Am I missing something ? thanks

(of course the next step would be to send back a message to the calling C++ code when a slider is modified)

@RussTedrake
Copy link
Collaborator

Both of those should work; they are covered by the following test https://github.com/rdeits/meshcat/blob/master/test/controls.html#L46 (which I've just verified works fine on master).

Do you have a reproduction?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants