You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: