Closed PNisargkumar closed 10 months ago
Does your Spot have the arm mounted on top? If so, can you replace this line:
image_request->set_pixel_format(bosdyn::api::Image_PixelFormat_PIXEL_FORMAT_RGB_U8);
with:
if (source.camera == SpotCamera::HAND) {
image_request->set_pixel_format(bosdyn::api::Image_PixelFormat_PIXEL_FORMAT_RGB_U8);
}
else {
image_request->set_pixel_format(has_rgb_cameras ? bosdyn::api::Image_PixelFormat_PIXEL_FORMAT_RGB_U8
: bosdyn::api::Image_PixelFormat_PIXEL_FORMAT_GREYSCALE_U8);
}
re-compile/re-source, and try running again with rgb_cameras: False
in your config file?
I installed the branch greyscale_cam and the issue is resolved.
I followed the instructions as given in the readme for the installation. But during the build I faced the following error/issue:
non-existent path "/usr/local/lib/python3.10/dist-packages/numpy/core/include" while building spot_msgs
I ran the following command to resolve the above error to build it successfully.
sudo pip install --target=/usr/local/lib/python3.10/dist-packages numpy
Now when I launch the driver by setting the environment variable or using the config file it throws the following error:
[spot_image_publisher_node-2] [ERROR] [1699968764.025441927] [image_publisher]: Failed to get images: Failed to get images: 6(STATUS_UNSUPPORTED_PIXEL_FORMAT_REQUESTED): ImageResponse ::bosdyn::common::Status unsuccessful
The driver does not crash it keeps throwing the error repeatedly. I am able to use rest of the services but don't receive images from spot.
For my spot which has a monochromatic camera also tried setting the variable "rgb_cameras" to False in the config.yaml (Closed Issue #64 )
Here is the log: