Getting rosparam from node namespace within bash script?
How do I duplicate the behavior in a bash script of python or c++ nodes where getting a rosparam gets it relative to the nodehandle/rospy namespace? I'd like to launch a .sh node in a roslaunch file and set parameters in the node namespace, but how does the shell script know what that namespace is when it runs rosparam get to get it?
roslaunch file:
<node name="foo" pkg="bar" type="test.sh">
<param name="do_something" value="true" />
</node>
And then test.sh:
#!/bin/sh
...
do_something=`rosparam get do_something`
But that will get /do_something, not the node namespace.