Ask Your Question
0

Unused args[] for include of

asked 2017-03-21 09:12:25 -0600

moksgo gravatar image

updated 2017-03-21 09:21:07 -0600

All the arguments are declared prior, but i still receive the same error. couldn't figure out why

unused args [device_ip, manager, port] for include of [/opt/ros/indigo/share/velodyne_driver/launch/nodelet_manager.launch]

please fnd my xml file below

<launch>

  <!-- declare arguments with default values -->


  <arg name="calibration" default="$(find velodyne_pointcloud)/params/VLP16db.yaml"/>
  <arg name="device_ip" default="" />    
  <arg name="frame_id" default="velodyne" />  
  <arg name="manager" default="$(arg frame_id)_nodelet_manager" />
  <arg name="max_range" default="130.0" />
  <arg name="min_range" default="0.4" />
  <arg name="pcap" default="" />
  <arg name="port" default="2368" />
  <arg name="read_fast" default="false" />
  <arg name="read_once" default="false" />
  <arg name="repeat_delay" default="0.0" />
  <arg name="rpm" default="600.0" />

  <!-- start nodelet manager and driver nodelets -->

  <include file="$(find velodyne_driver)/launch/nodelet_manager.launch">

    <arg name="device_ip" value="$(arg device_ip)"/> 
    <arg name="frame_id" value="$(arg frame_id)"/> 
    <arg name="manager" value="$(arg manager)" />
    <arg name="model" value="VLP16"/>
    <arg name="pcap" value="$(arg pcap)"/>
    <arg name="port" value="$(arg port)"/>
    <arg name="read_fast" value="$(arg read_fast)"/>
    <arg name="read_once" value="$(arg read_once)"/>
    <arg name="repeat_delay" value="$(arg repeat_delay)"/>
    <arg name="rpm" value="$(arg rpm)"/>

  </include>

  <!-- start cloud nodelet -->
  <include file="$(find velodyne_pointcloud)/launch/cloud_nodelet.launch">
    <arg name="calibration" value="$(arg calibration)"/>
    <arg name="manager" value="$(arg manager)" />
    <arg name="max_range" value="$(arg max_range)"/>
    <arg name="min_range" value="$(arg min_range)"/>
  </include>

</launch>
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-03-22 18:10:08 -0600

moksgo gravatar image

updated 2017-03-22 19:00:18 -0600

ahendrix gravatar image

My bad.. I am new to ROS and hence couldn't figure this out previously.

when we <include ...> a file as in the above case, we are passing all the parameters that are mentioned in the <include >......</include> to be used in the file. (In this case, nodelet_manager.launch.) When we don't refer or use them in that file, this unused args issue will comeup.. .May be one of the cases where this issue might come up

edit flag offensive delete link more

Comments

I'm not sure that I'm understanding this answer. Are you saying that you get the unused args warning because you're not using the args? From the looks of the launch file that you posted, you are using them.

jayess gravatar imagejayess ( 2017-07-20 18:58:24 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-03-21 09:12:25 -0600

Seen: 945 times

Last updated: Mar 22 '17