launchfile's <args> problem
When I write a launch file,I try to run a node with command line arguments. Just like:
<node pkg="my_pkg" type="my_type" name="my_node" output="screen" args="--my_arg my_num">
But when i check the argv parameters,i found there're more than three, the additional two is
__name:=my_node
__log:=xxxxx.log
What's wrong with it? Is there any solution to skip the aditional two comand line?
In a nut shell nothing is wrong with it. ROS uses command line arguments to pass standard parameters to the node. The args property in the launch file just adds extra arguments onto these. Can you simply ignore them when processing arguments in your node?
Thank you.