Skip to content

Issue running evo_thermal.py #42

@antoineTK

Description

@antoineTK

Hi guys,

I am running ROS melodic on ubuntu 18.04, I have successfully built latest package from source.

This is the error I get when trying to use evo_termal.py

rosrun teraranger evo_thermal.py _portname:=/dev/ttyACM1 [INFO] [1652363849.175426]: Starting sensor output... [INFO] [1652363849.183349]: Sensor output started successfully Traceback (most recent call last): File "/home/uha/ROS/uha_ws/src/teraranger/scripts/evo_thermal.py", line 340, in <module> evo_thermal.run() File "/home/uha/ROS/uha_ws/src/teraranger/scripts/evo_thermal.py", line 328, in run thermal_image = self.auto_scaling(temp_array) File "/home/uha/ROS/uha_ws/src/teraranger/scripts/evo_thermal.py", line 178, in auto_scaling frame = cv2.applyColorMap(frame, self.selected_cmap) TypeError: only size-1 arrays can be converted to Python scalars

If I comment line 178 it works fine and I can see the image, but I am getting a grayscale image.

Thanks in advance for the support

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