Robotics StackExchange | Archived questions

No ROS_INFO messages using ROS laser plug-in

Hi

I had a look on the gazebo ROS laser plug-in and I added a ROS_INFO message just before the ROS callback queue.

...      
ROS_INFO ( "Starting GazeboRosLaser Plugin (ns = %s)!", this->robot_namespace_.c_str() );
printf("Bad HACK: Starting GazeboRosLaser Plugin (ns = %s)!\n", this->robot_namespace_.c_str() );
// ros callback queue for processing subscription
this->deferred_load_thread_ = boost::thread(boost::bind(&GazeboRosLaser::LoadThread, this));
...

The message was not published, using ROS_WARN works So what do I have to change to publish the info messages, other plugins like the diff drive publishes the ROS_INFO messages.

Greetings

Asked by Markus Bader on 2013-11-07 02:22:32 UTC

Comments

Answers

The ROS_INFO message is probably directed to a ROS log file. In your roslaunch file there probably something like:

<node ... output="log"/>

You can delete the output attribute or set it to output=screen.

Asked by nkoenig on 2013-11-07 16:05:58 UTC

Comments

Hi I am loading a model with a diff drive plugin and a laser plugin. The diff drive plugin prints ROS_INFO message and the laser plugin not. I also used the ROS debug console rqt_console same there.

Asked by Markus Bader on 2013-11-08 07:09:35 UTC

Do the messages appear in your ROS log file? Which laser plugin are you using?

Asked by nkoenig on 2013-11-12 21:27:44 UTC

Sorry for the late answer: I am using the libgazebo_ros_laser.so. and also also checked the rosout.log file

Asked by Markus Bader on 2013-11-18 09:59:17 UTC

I'm at a loss. It might be because the logger level is set inappropriately. You can check this using the rqt logger level plugin. I'll have to create a test model and try this all out for myself.

Asked by nkoenig on 2013-11-18 17:39:07 UTC

something changed with the new version, the ROS_INFO works now :-)

Asked by Markus Bader on 2014-03-20 10:47:16 UTC