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

Possible improper call of _wb_device.recognitionDisable() #242

Closed
scottnortman opened this issue Jul 10, 2021 · 0 comments · Fixed by #294
Closed

Possible improper call of _wb_device.recognitionDisable() #242

scottnortman opened this issue Jul 10, 2021 · 0 comments · Fixed by #294
Assignees
Labels
bug Something isn't working
Milestone

Comments

@scottnortman
Copy link

Using Webots 2021a with the ROS2 interface, Ubuntu 20.04.

I created numerous cameras in the Webots world and do not need the built in recognition functionality, so I leaver the recognition as NULL. Images will instead b e streamed via a topic into an alternate recognition node through ROS2.

After launching, I am able to see images as expect in RVIZ2 and other nodes, however I recieve a constant stream of output messages in the launch terminal:

[webots_node] Error: wb_camera_recognition_disable() called on a Camera without Recognition node.

I traced this down to the file

webots_ros2_core/camera_device.py

If you look at the if / else statement, with the 'if' on line 147, it checks to see if the camera has recognition, and if not, falls through to the 'else' statement on line 214. The call inside the 'else' is

self._wb_device.recognitionDisable()

but in my case the recognition is NULL, so there is no instance that can call the method, and hence the error output. I commented out that line and it resolved the Error output messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging a pull request may close this issue.

3 participants