argument parsing
I read the source code of image_saver.cpp
According to the docs, you should use command line like this :
rosrun image_view image_saver image:=/image/topic
but to parse the parameter, you should add a underline before ‘image’, I want to know the mechanism of this, thanks
Do you mean node parameter assignment (see section 4) versus remapping? Without the underscore, ROS will apply and consume the remapping; with the underscore, you have to do
getParam("~image")
or similar yourself to read the value.