Can't enable/add camera on Kuka Youbot in ROS indigo?

asked 2015-12-06 23:06:38 -0600

adriancabal gravatar image

updated 2015-12-15 20:09:06 -0600

Hi I am fairly new to gazebo and ROS indigo. I want to add a camera on the Youbot so that I can track road lanes and do lane keeping which I'm doing for a senior design project. So first I installed the youBot Gazebo package for ROS indigo which i got from the youbot store website: http://www.youbot-store.com/wiki/inde...

Now its seems that the youBot package already came with several cameras including the Asus Xtion camera, Kinect camera, and the Microsoft Lifecam with their gazebo.xacro and urdf.xacro files located under the youbot_description/urdf/sensors folder. So I tried to enable the Microsoft Lifecam sensor by opening the youbot.urdf.xacro file located under youbot_description/robots folder and added this line: image description

I also copied and pasted the simulation tags from the bottom of the microsoft_lifecam.urdf.xacro file: image description

and pasted it near at the bottom of the youbot.urdf.xacro file and modified it to this: image description

After that, I run the simulation. I run the simulation by typing roscore at the terminal. Then I open a new terminal and type roslaunch youbot_gazebo_robot youbot.launch and wait for Gazebo to load. But when Gazebo opens up, the Microsoft Lifecam camera doesn't appear anywhere on the Youbot. I have tried to do the same procedure for all three cameras but none of them appear on the Youbot when I run it on the Gazebo. I know I'm doing something wrong, but not sure how to fix. If someone could help me with this issue so that I can simulate a camera on the YouBot, I would appreciate it a lot. Thanks.

edit retag flag offensive close merge delete

Comments

Can you look for error messages in `~/.gazebo/gzserver.log`?

nkoenig gravatar imagenkoenig ( 2015-12-16 12:20:49 -0600 )edit