webviz icon indicating copy to clipboard operation
webviz copied to clipboard

How to make ros service calls

Open ubicray opened this issue 4 years ago • 7 comments

So far what I have in mind: Create a new panel type Put buttons in it Make buttons call services via rosbridge Is there any documentation regarding that I can use?

ubicray avatar Mar 17 '20 13:03 ubicray

Yeah this is a great request, and very similar to #323. Like I said in the answer there, in our internal version we have similar functionality, so I should really just allocate some time soon to port it to the open source version…

janpaul123 avatar Mar 17 '20 17:03 janpaul123

Yeah this is a great request, and very similar to #323. Like I said in the answer there, in our internal version we have similar functionality, so I should really just allocate some time soon to port it to the open source version…

Thanks for letting me now! I'd rather need it ASAP, so started implementing it myself. Would you mind sharing a panel with service integration if possible?

ubicray avatar Mar 23 '20 22:03 ubicray

We currently don't have a panel with service integration, but tomorrow I'll push our internal "Publish" panel with which you can publish on arbitrary topics. If you follow the logic of how that one works it should be somewhat straightforward to modify it to support service calls as well. I'll update you here when I push that code.

janpaul123 avatar Mar 25 '20 00:03 janpaul123

@ubicray FYI pushed it here: https://github.com/cruise-automation/webviz/pull/378

janpaul123 avatar Mar 25 '20 18:03 janpaul123

The "Publish" panel is in the master branch now. It should be pretty straightforward to extend it to support service calls; let me know if you need any help with that!

janpaul123 avatar Apr 09 '20 18:04 janpaul123

Has there been any progress here? Or, what would it take to extend this for service calls?

rgov avatar Dec 08 '20 19:12 rgov

Hi @rgov! To my knowledge we haven't updated the Publish panel to make service calls. Have you tried tweaking it as JP suggests above?

troygibb avatar Dec 09 '20 16:12 troygibb