Skip to content

HELPFUL: How to set camera color config in launch file #120

@nbaddorf

Description

@nbaddorf

This is to help others running into the same issue I am had.

My cameras default image was messed up from the color settings in video_stream_opencv. Rosparam didnt work for me. I found this stack exchange https://robotics.stackexchange.com/questions/84000/load-parameters-using-roslaunch-saved-as-yaml-from-rqt-dynamic-reconfigure and this worked for me.

Run rosrun dynamic_reconfigure dynparam dump /node config_raw.yaml to download a yaml file of the parameters. For me it was rosrun dynamic_reconfigure dynparam dump /webcam/webcam_stream config_raw.yaml

Then go in and modify that yaml file to set the color settings to what you want.

Then add to your launch file this: <node name="dynamic_reconfigure_load" pkg="dynamic_reconfigure" type="dynparam" args="load /camera_node_name $(find my_package)/params/config_raw.yaml" /> Again, I had to change camera_node_name to /webcam/webcam_stream

Hope this helps

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions