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
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 scalarsIf 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