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

Revision history [back]

click to hide/show revision 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>

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.

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.

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.

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

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

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

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

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