Gazebo | Ignition | Community
Ask Your Question
0

No ROS_INFO messages using ROS laser plug-in

asked 2013-11-07 01:22:32 -0500

Markus Bader gravatar image

updated 2013-11-07 01:34:20 -0500

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-11-07 15:05:58 -0500

nkoenig gravatar image

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.

edit flag offensive delete link more

Comments

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

Markus Bader gravatar imageMarkus Bader ( 2013-11-08 06:09:35 -0500 )edit

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

nkoenig gravatar imagenkoenig ( 2013-11-12 20:27:44 -0500 )edit

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

Markus Bader gravatar imageMarkus Bader ( 2013-11-18 08:59:17 -0500 )edit

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.

nkoenig gravatar imagenkoenig ( 2013-11-18 16:39:07 -0500 )edit

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

Markus Bader gravatar imageMarkus Bader ( 2014-03-20 10:47:16 -0500 )edit

Question Tools

Stats

Asked: 2013-11-07 01:22:32 -0500

Seen: 2,366 times

Last updated: Nov 07 '13