Ar-Ray-code / YOLOX-ROS

YOLOX + ROS2 object detection package (C++ only support)
Apache License 2.0
263 stars 58 forks source link

Edit YOLOX pth/exp values without changing launch file #27

Closed JonathanNash21 closed 2 years ago

JonathanNash21 commented 2 years ago

Hello,

Is it possible to specify parameters in the launch file (like those in the title) via command line arguments? Or do I have to go into the launch.py and manually edit the launch_ros.actions.Node parameters? Thank you.

JonathanNash21 commented 2 years ago

And along the same idea, is there a simple way to add a namespace (like https://iroboteducation.github.io/create3_docs/setup/multi-robot/ uses) to the bounding_boxes publisher for subscribing to? Or will I have to manually edit that as well?

Ar-Ray-code commented 2 years ago

You can launch yolox-ros-cpp with arguments, but yolox-ros-py can't now. yolox_openvino.launch.py

ros2 launch yolox_ros_cpp yolox_openvino.launch.py video_device:=/dev/video0
Ar-Ray-code commented 2 years ago

If you want to set namespace on launch file, add namespace parameter in launch_ros.actions.Node.

Example (motpy-ros)


    webcam = launch_ros.actions.Node(
        package='v4l2_camera', executable='v4l2_camera_node',
        namespace='camera/color',
        parameters=[
            {"image_size": [640,480]},
        ],
    )
JonathanNash21 commented 2 years ago

I appreciate the quick response! Thank you!