astuff / flir_boson_usb

ROS Driver for the FLIR Boson IR Camera
MIT License
12 stars 21 forks source link

changing video mode "on the fly" question #9

Open DoneMan opened 2 years ago

DoneMan commented 2 years ago

hi. i am trying to change the video mode without shutting down the node. i added a service in the code witch changes the video mode. my function looks like this:

 `serviceHandler()`
{
    if(req.mode == 0)
    {
        video_mode = YUV;
    }
    else
    {
        video_mode = RAW16;
    }
    closeCamera();
    openCamera();
}

when i try this i get the error: "flir_boson_usb - VIDIOC_S_FMT error. The camera does not support the requested video format."

do you have any idea why this is happening?

icolwell-as commented 1 year ago

Hi @DoneMan, I'm not familiar with the code in this repo, but I think the error is pretty self-explanatory: The camera does not support the requested video format.

Are you running a newer camera that no longer supports RAW16 perhaps? Do you get the same error if you run the launch file and specify RAW16?