Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A GigE camera's temperature is always 0.0 #245

Open
boxanm opened this issue Sep 20, 2024 · 2 comments
Open

A GigE camera's temperature is always 0.0 #245

boxanm opened this issue Sep 20, 2024 · 2 comments

Comments

@boxanm
Copy link

boxanm commented Sep 20, 2024

Describe what you want to implement and what the issue & the steps to reproduce it are:

I noticed that the temperature field of the /basler/current_params topic is always 0.0.
After some investigation, I noticed that the PR that introduced temperature readings treats GigE and USB cameras differently.
Swapping the original code in the GigE camera call:

return static_cast<float>(cam_->TemperatureAbs.GetValue());

for the USB camera version:

return static_cast<float>(cam_->DeviceTemperature.GetValue());

fixed the issue, and I'm now able to monitor the camera's temperature. I'll be happy to submit a PR with this fix, assuming that the temperature calls in the Pylon SDK have changed since the original PR was submitted. Can someone with more experience with Pylon confirm my hypothesis?

Hardware setup description

We have a Basler a2A1920-51gcPRO camera. I wasn't able to verify any other device.

Runtime information

Ros2 Humble

Is your camera operational with the Basler pylon Viewer on your platform?

Yes

@SMA2016a
Copy link

Check if your camera has got the temperature sensor with pylonviewer.

@boxanm
Copy link
Author

boxanm commented Sep 24, 2024

Yes, I can get the temperature in PylonViewer, as well as when when using the cam_->DeviceTemperature.GetValue() call. Nevertheless, the code sample uses another function call to read it
Screenshot from 2024-09-23 22-48-36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants