Hello there,
Our group has been trying to get a video feed from a Nao Robot in Webots, using ROS. We've successfully managed to obtain a video image from the top camera (ID:"/CameraTop_frame"), but when we switch to the bottom camera (ID:"/CameraBottom_frame"), it returns no data and crashes the camera driver. We've tried 'rostopic echo' on both cameras and only the top camera returns any data.
We have been editing the file "nao_camera.py" to switch between the two cameras, editing the following line in the script (line 31):
self.camera_switch = rospy.get_param('~camera_switch', 0) #We change the 0 here to a 1. This should access the bottom camera
if self.camera_switch == 0:
self.frame_id = "/CameraTop_frame"
elif self.camera_switch == 1:
self.frame_id = "/CameraBottom_frame"
else:
rospy.logerr('Invalid camera_switch. Must be 0 or 1')
exit(1)
Our team thinks it is either an issue with Webots/ROS, or perhaps we are trying to access the bottom camera in the wrong way? We are all running 64 bit Ubuntu. We have also tried rolling back Webots until version 6, as well as trying the newest version, 7.2.1. The top camera works fine across all versions.
Any input would be greatly appreciated.
Thanks, Dominic.
Originally posted by Dominic on ROS Answers with karma: 11 on 2013-08-13
Post score: 1
Original comments
Comment by SL Remy on 2013-08-15:
Are you using http://www.ros.org/wiki/kaist_webots ?