Open ibr5456s opened 1 week ago
Hello @ibr5456s Thank you for your reporting. You write: "they are actually compressed and appear as static noise when visualized in RVIZ2". I don't have your camera model but it should be possible to visualize the images in rviz and rqt. Did you try rqt? I can't help you here with the Pylon decompressor, you should contact the Basler support to get some help from them. Do your program work with images acquired from the pylon viewer and stored on your computer?
Hello,
I am currently working on a project where I need to decompress images coming from a Basler camera in a ROS2 environment using the Pylon SDK in Python (or any other method that can achieve this goal) to visualize them in RVIZ2. The images are published to a ROS2 topic as
sensor_msgs/Image
messages, but they are actually compressed and appear as static noise when visualized in RVIZ2. My objective is to decompress these images and publish them again in a decompressed format that can be visualized correctly in RVIZ2.Issue and Steps to Reproduce
I am using the following Python code to attempt to decompress the images using the Pylon SDK (still experminting):
I have also used this to successfully decompress images directly from a connected camera (will not work with pylon_ros2_driver):
Issue Encountered
I could not find a way to retrieve all the required data for the pylon decompressor (like Descriptor) considering the camera is already working using the ROS2 Driver and I can not open the camera or currently, I encountered the following error:
This is the ros2 topic echo for /image_raw for the compressed images:
image_data.txt
Hardware setup description
Runtime information
pylon info: 8.0.0.10 64-Bit pylon Setup info: 7.5.0.15658 pylon Application info: 3.3.0.15479 64-Bit pylon Viewer info: 7.5.0.15479 64-Bit
Host system infos: CPU architecture: x86_64 Kernel type: linux Kernel version: 6.8.0-40-generic OS type: ubuntu OS version: 22.04 Render Backend: OpenGL
Screen(s): Screen 0 scale factor: 1 Screen 0 resolution: 2880x1620
Window(s): pylon Viewer 64-Bit" on screen 0
Host network infos: Host network adapter enp45s0: Name: enp45s0 MAC address: 58:11:22:89:3B:E1 Host network adapter docker0: Name: docker0 MAC address: 02:42:9C:42:4B:72 IP address: 172.17.0.1 Subnet mask: 255.255.0.0 Host network adapter br-a296f01552f4: Name: br-a296f01552f4 MAC address: 02:42:36:9B:A9:47 IP address: 172.18.0.1 Subnet mask: 255.255.0.0 Host network adapter wlp46s0: Name: wlp46s0 MAC address: 14:13:33:88:A3:99 IP address: 192.168.0.212 Subnet mask: 255.255.255.0