ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Can a rosbridge HTML client access ROS parameters?

asked 2012-09-13 14:43:54 -0500

Pi Robot gravatar image

Hello,

Can an HTML client connecting to rosbridge (v1 or v2) access ROS parameters? I am developing a rosbridge/HTML5/javascript GUI to teleop my robot and I'm wondering if I can set a number of parameters in the launch file used to fire up rosbridge and then access those parameters from the HTML/javascript client.

Thanks!
patrick

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-09-13 15:12:06 -0500

ahendrix gravatar image

updated 2012-09-17 09:45:31 -0500

I know that you can with rosbridge 1.0; there's a psuedo-service call that you can make to get and set parameters. I can't find the documentation for it at the moment; it shouldn't be too hard to find in you grep the source for rosbridge.py.

EDIT: In rosbridge 1.0, it looks like these services are /rosbridge/get_param and /rosbridge/set_param (rosbridge/bin/rosbridge.py lines 89-107)

I assume that it's possible with rosbridge 2.0 as well, but it's a fairly new project and the documentation doesn't seem complete just yet. Again, a short tour through the source should find it.

edit flag offensive delete link more

Comments

Thanks Austin. So far I haven't be able to find the magic incantation in the source but I will keep looking...

Pi Robot gravatar image Pi Robot  ( 2012-09-14 11:52:35 -0500 )edit

Awesome! Thanks Austin. Dunno how I missed that since I was grep'in left and right among the files for "param" but obviously did something wrong. In any event, this will be very useful.

Pi Robot gravatar image Pi Robot  ( 2012-09-17 10:08:53 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2012-09-13 14:43:54 -0500

Seen: 278 times

Last updated: Sep 17 '12