qboticslabs / mastering_ros

This repository contains exercise files of the book "Mastering ROS for Robotics Programming"
https://www.packtpub.com/hardware-and-creative/mastering-ros-robotics-programming
479 stars 282 forks source link

Chapter4: Unable to load camera object in Gazebo #39

Open s2007ravi opened 5 years ago

s2007ravi commented 5 years ago

Hi qboticslab,

I am using ROS Melodic in Ubuntu 18.04 virtual machine. I am facing an issue while launching Gazebo simulator with rgbd_camera. I did everything that is mentioned in the book but getting two errors:

[ERROR] [1559059238.827069066, 0.160000000]: Tried to advertise a service that is already advertised in this node [/rgbd_camera/set_camera_info]

[ERROR] [1559059238.860400635, 0.160000000]: Tried to advertise a service that is already advertised in this node [/rgbd_camera/set_parameters]

I am unable to debug this issue. I tried to check rosservices list and found rgbd_camera/set_parameters and rgbd_camera/set_camera_info are listed as services.

Please see an attached screenshot which shows the mentioned errors.

Thanks camera_error

qboticslabs commented 5 years ago

@s2007ravi please check the topics from the rgbd camera plugin is getting. The error says, the service is already running, so no need to run it again. So, I think its not a big issue. but make sure topics are coming.

s2007ravi commented 5 years ago

Hi qboticslab,

Thanks for your reply.

I checked rostopic list and found that these two topics are not coming. Please see attached screenshot.

What can be the reason behind it? Do I require to re-install Gazebo or camera plugin?

Thanks

error_topics