Ask Your Question

Question about sending parameters from remote Android device to ROS

asked 2018-02-27 14:15:17 -0500

JKaiser gravatar image

I'm developing an APK to send a number of parameters (integers and floats) to a ROS application through rosbridge. However I'm stumped at how to proceed. The parameters are to be used by particular nodes to do some operations with images. My question is, is it possible to send those parameters directly to the node or do I have to publish those parameters in an intermediary topic to then subscribe the nodes I already have to the appropriate parameter topics?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-02-27 14:44:49 -0500

IanCol gravatar image

You have a few options:

  • You can use the ROS parameter server with the rosbridge according to this. The parameter server is more for setting parameters that do not change during the operation of the nodes.
  • If you need the parameters to constantly change throughout operation then publishing a custom message with all your parameters in it should work. Or publishing multiple primitive types (ints, floats) to various subtopics such as /image_params/width and /image_params/height could work if the rosbridge doesn't allow custom messages.
  • I would suggest dynamic reconfigure, but I'm not sure if rosbridge supports it
edit flag offensive delete link more


The second option was the one I used and it worked fine. Thanks for your help IanCol

JKaiser gravatar image JKaiser  ( 2018-08-09 18:19:39 -0500 )edit
abhishek47 gravatar image abhishek47  ( 2021-08-16 04:28:16 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-02-27 14:15:17 -0500

Seen: 87 times

Last updated: Feb 27 '18