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

Hi @dinesh,

If you need to change the parameter like that your should add and argument to the launch file.

E.g.:

<?xml version="1.0"?>
<launch>
    <arg name="arg1" default="-
    <node pkg="pure_vision" type="my_publisher" name="my_publisher" args="$(arg arg1)"/>
    <node pkg="pure_vision" type="pure_vision" name="pure_vision"/>
    <node pkg="rviz" type="rviz" name="rviz"/>
</launch>

Cheers

Hi @dinesh,

If you need to change the parameter like that your should add and argument to the launch file.

E.g.:

<?xml version="1.0"?>
<launch>
    <arg name="arg1" default="-
default="-arg1"/>
    <node pkg="pure_vision" type="my_publisher" name="my_publisher" args="$(arg arg1)"/>
    <node pkg="pure_vision" type="pure_vision" name="pure_vision"/>
    <node pkg="rviz" type="rviz" name="rviz"/>
</launch>

Cheers

Hi @dinesh,

If you need to change the parameter like that your should add and argument to the launch file.

E.g.:E.g.: Launch file pure_vision_single_image.launch:

<?xml version="1.0"?>
<launch>
    <arg name="arg1" default="-arg1"/>
    <node pkg="pure_vision" type="my_publisher" name="my_publisher" args="$(arg arg1)"/>
    <node pkg="pure_vision" type="pure_vision" name="pure_vision"/>
    <node pkg="rviz" type="rviz" name="rviz"/>
</launch>

Cheers

Command:

roslaunch pure_vision pure_vision_single_image.launch arg1:="image.jpg"

Hi @dinesh,

If you need to change the parameter like that your should add and argument to the launch file.

E.g.: Launch file pure_vision_single_image.launch:-> pure_vision_single_image.launch:

<?xml version="1.0"?>
<launch>
    <arg name="arg1" default="-arg1"/>
    <node pkg="pure_vision" type="my_publisher" name="my_publisher" args="$(arg arg1)"/>
    <node pkg="pure_vision" type="pure_vision" name="pure_vision"/>
    <node pkg="rviz" type="rviz" name="rviz"/>
</launch>

Cheers

Command:

roslaunch pure_vision pure_vision_single_image.launch arg1:="image.jpg"

Hi @dinesh,

If you need to change the parameter like that your should add and argument to the launch file.

E.g.: Launch file -> pure_vision_single_image.launch:

<?xml version="1.0"?>
<launch>
    <arg name="arg1" default="-arg1"/>
    <node pkg="pure_vision" type="my_publisher" name="my_publisher" args="$(arg arg1)"/>
    <node pkg="pure_vision" type="pure_vision" name="pure_vision"/>
    <node pkg="rviz" type="rviz" name="rviz"/>
</launch>

Cheers

Command:

roslaunch pure_vision pure_vision_single_image.launch arg1:="image.jpg"