ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Can't See Log Message in rqt_console

asked 2014-01-01 05:22:44 -0500

daalt gravatar image

updated 2014-01-28 17:18:55 -0500

ngrennan gravatar image

Anyone know why I'm not seeing the loginfo message in rqt_console when I run the following node? I can see the message in the terminal screen so the message does seem to be getting generated. I just can't see it in rqt_console.

#! /usr/bin/env python

import roslib; roslib.load_manifest("robot_arm")
import rospy

def InitializeRobot():
    robot_id = rospy.get_param("robot/robot_id") 
    rospy.init_node('InitializeRobot') 
    rospy.loginfo("ROBOT %i: Starting Up" % robot_id)

if __name__ == '__main__':
    try:
        InitializeRobot()
    except rospy.ROSInterruptException:
        pass
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-04-27 04:50:06 -0500

Did you tried with rospy.spin()after InitializeRobot()?

edit flag offensive delete link more
0

answered 2014-04-26 22:39:28 -0500

mhallak gravatar image

Did you get an answer? I have the same problem.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-01-01 05:22:44 -0500

Seen: 561 times

Last updated: Apr 27 '14