ros-simulation / gazebo_ros_pkgs

Wrappers, tools and additional API's for using ROS with Gazebo
http://wiki.ros.org/gazebo_ros_pkgs
742 stars 766 forks source link

spawn_sdf_model_client logs error #1495

Open Lobotuerk opened 11 months ago

Lobotuerk commented 11 months ago

When using gazebo_ros to spawn an sdf through spawn_sdf_model_client, it logs an error even though it succeeds in spawning the sdf.

Error:   Could not find the 'robot' element in the xml file
         at line 109 in /build/source/urdf_parser/src/model.cpp
Error [parser_urdf.cc:3179] Unable to call parseURDF on robot model
Error [parser.cc:488] parse as old deprecated model file failed.

The error might not be coming from gazebo_ros_pkgs specifically, but I have tested the same sdf directly from the sdf spawn service and it works without the errors