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

Here I go answering my own question. XD

I changed the launch file in this way:

<launch>


  <arg name="filters" default="temporal,spatial,hole_filling,decimation"/>
  <arg name="align_depth" default="true"/>
  <arg name="prototxt" default="/home/user/catkin_ws/src/human_ssd/model/MobileNetSSD_deploy.prototxt"/>
  <arg name="thr"  default="0.3"/>
  <arg name="weights" default="/home/user/catkin_ws/src/human_ssd/model/MobileNetSSD_deploy.caffemodel"/>



  <include file="$(find realsense2_camera)/launch/rs_camera.launch">
  <arg name="filters" value="$(arg filters)"/>
  <arg name ="align_depth" value="$(arg align_depth)"/>
  </include>

  <node pkg="human_ssd" type="detector.py" name="human_ssd_detector" output="screen" args="--thr $(arg thr)  --prototxt $(arg prototxt) --weights $(arg weights)">
  </node>

</launch>

now i can easily pass my own parameters if not it will take default.

Eg:

roslaunch human_ssd detector.launch filters:=spatial thr:=0.6

the above command sets only spatial filter and changes threshold to 0.6