ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The best wat would be to create parameters in your python script. Examples here : http://wiki.ros.org/rospy/Overview/Parameter%20Server (Make them private with ~
)
For example in my node I have :
self.target_frame = rospy.get_param("~target_frame", "map")
And I can start it like in in my launchfile :
<node if="$(arg use_radar)" pkg="aw_platform" type="radar_relay.py" name="radar_relay" output="screen">
<param name="target_frame" value="test" />
</node>
2 | No.2 Revision |
The best wat would be to create parameters in your python script. Examples here : http://wiki.ros.org/rospy/Overview/Parameter%20Server (Make them private with ~
)
For example in my node I have :
self.target_frame = rospy.get_param("~target_frame", "map")
And I can start it like in in my launchfile :
<node if="$(arg use_radar)" pkg="aw_platform" type="radar_relay.py" name="radar_relay" output="screen">
<param name="target_frame" value="test" />
</node>
This method is very good because it allows you to use the parameter server to set your parameters also and load your parameters from a yaml file for example.
3 | No.3 Revision |
The best wat would be to create parameters in your python script. Examples here : http://wiki.ros.org/rospy/Overview/Parameter%20Server (Make them private with ~
)
For example in my node I have :
self.target_frame = rospy.get_param("~target_frame", "map")
And I can start it like in in my launchfile :
<node if="$(arg use_radar)" pkg="aw_platform" type="radar_relay.py" name="radar_relay" output="screen">
<param name="target_frame" value="test" />
</node>
This method is very good because it allows you to use the parameter server to set your parameters also and load your parameters from a yaml file for example.
4 | No.4 Revision |
The best would be to create parameters in your python script. Examples here : http://wiki.ros.org/rospy/Overview/Parameter%20Server (Make them private with ~
)
For example in my node I have :
self.target_frame = rospy.get_param("~target_frame", "map")
And I can start it like in in my launchfile :
<node if="$(arg use_radar)" pkg="aw_platform" type="radar_relay.py" name="radar_relay" output="screen">
<param name="target_frame" value="test" />
</node>
This method is very good because it allows you to use the parameter server to set your parameters also and load your parameters them from a yaml file for example.
5 | No.5 Revision |
link textThe best would be to create parameters in your python script. Examples here : http://wiki.ros.org/rospy/Overview/Parameter%20Server here (Make them private with ~
)
For example in my node I have :
self.target_frame = rospy.get_param("~target_frame", "map")
And I can start it like in in my launchfile :
<node if="$(arg use_radar)" pkg="aw_platform" type="radar_relay.py" name="radar_relay" output="screen">
<param name="target_frame" value="test" />
</node>
This method is very good because it allows you to use the parameter server to set your parameters also and load them from a yaml file for example.
You can read more about the parameter server here
6 | No.6 Revision |
link textThe best would be to create parameters in your python script. Examples here (Make them private with ~
)
For example in my node I have :
self.target_frame = rospy.get_param("~target_frame", "map")
And I can start it like in in my launchfile :
<node if="$(arg use_radar)" pkg="aw_platform" type="radar_relay.py" name="radar_relay" output="screen">
<param name="target_frame" value="test" />
</node>
This method is very good because it allows you to use the parameter server to set your parameters also and load them from a yaml file for example.
You can read more about the parameter server here
7 | No.7 Revision |
The best would be to create parameters in your python script. Examples here (Make them private with ~
)
For example in my node I have :
self.target_frame = rospy.get_param("~target_frame", "map")
And I can start it like this in in my launchfile :
<node if="$(arg use_radar)" pkg="aw_platform" type="radar_relay.py" name="radar_relay" output="screen">
<param name="target_frame" value="test" />
</node>
This method is very good because it allows you to use the parameter server to set your parameters also and load them from a yaml file for example.
You can read more about the parameter server here
8 | No.8 Revision |
The best would be to create parameters in your python script. Examples here (Make them private with ~
)
For example in my node I have :
self.target_frame = rospy.get_param("~target_frame", "map")
And I can start it like this in in my launchfile :
<node if="$(arg use_radar)" pkg="aw_platform" type="radar_relay.py" pkg="robot_platform" type="test.py" name="radar_relay" output="screen">
<param name="target_frame" value="test" />
</node>
This method is very good because it allows you to use the parameter server to set your parameters also and load them from a yaml file for example.
You can read more about the parameter server here
9 | No.9 Revision |
The best would be to create parameters in your python script. Examples here (Make them private with ~
)
For example in my node I have :
self.target_frame = rospy.get_param("~target_frame", "map")
And I can start it like this in in my launchfile :
<node pkg="robot_platform" type="test.py" name="radar_relay" name="test" output="screen">
<param name="target_frame" value="test" />
</node>
This method is very good because it allows you to use the parameter server to set your parameters also and load them from a yaml file for example.
You can read more about the parameter server here