roslaunch does not work, but rosrun does

asked 2021-04-15 13:04:59 -0500

Chao Chen gravatar image

I want to run a python script using roslaunch instead of rosrun. It works perfectly with rosrun

My rosrun command is rosrun controller_msgs

My roslaunch file is

    <node name="detect_l515_ros" pkg="controller_msgs" type="" output="screen">
        <param name="agnostic_nms"            value="false"/>
        <param name="augment"                 value="false"/>
        <param name="classes"                 value="None"/>
        <param name="conf_thres"              value="0.25"/>
        <param name="device"                  value=""/>
        <param name="exist_ok"                value="false"/>
        <param name="img_size"                value="640"/>
        <param name="iou_thres"               value="0.45"/>
        <param name="name"                    value="exp"/>
        <param name="project"                 value="runs/detect"/>
        <param name="save_conf"               value="False"/>
        <param name="save_txt"                value="False"/>
        <param name="source"                  value="data/images"/>
        <param name="update"                  value="False"/>
        <param name="view_img"                value="False"/>
        <param name="weights"                 value=""/>

The error is popped as : FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'

edit retag flag offensive close merge delete