You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to spawn a model in gazebo at runtime and I misread the proper usage message from spawn_model script. Not surprisingly the model wasn't spawning but I could understand why since the logging messages weren't appearing. Instead you get:
SpawnModel script started
No handlers could be found for logger "rosout"
and then a silent exit. On further inspection I found out that the messages weren't appearing since rospy.init_node('spawn_model') is invoked after the parsing of the user inputs, so these messages get dropped.
A solution would be to change all messages in the parsing phase to python prints or another logging framework, or to actually invoke rospy.init_node('spawn_model') before parsing the CLI inputs.
To reproduce this issue in a MWE open a terminal and start gazebo:
(the -name option doesn't exist, to make it work replace with -model). You might need to have the cricket_ball model in your local gazebo models folder.
I'm using ROS kinetic and Ubuntu 16.04
The text was updated successfully, but these errors were encountered:
I was trying to spawn a model in gazebo at runtime and I misread the proper usage message from spawn_model script. Not surprisingly the model wasn't spawning but I could understand why since the logging messages weren't appearing. Instead you get:
and then a silent exit. On further inspection I found out that the messages weren't appearing since
rospy.init_node('spawn_model')
is invoked after the parsing of the user inputs, so these messages get dropped.A solution would be to change all messages in the parsing phase to python prints or another logging framework, or to actually invoke
rospy.init_node('spawn_model')
before parsing the CLI inputs.To reproduce this issue in a MWE open a terminal and start gazebo:
and in another terminal write:
(the -name option doesn't exist, to make it work replace with -model). You might need to have the cricket_ball model in your local gazebo models folder.
I'm using ROS kinetic and Ubuntu 16.04
The text was updated successfully, but these errors were encountered: