error: gazebo_ros_api_plugin.cpp Disablign rendering has not been implemented, rendering is always enabled
I modified the rrbot tutorial, and write a ros node who depend gazebo_ros and roscpp to control the model simulated. It seems worked but everytime the model move there will be an error like follow:
Error [gazebo_ros_api_plugin.cpp:901] disablign rendering has not been implemented, rendering is always enabled
part of my node code is like follow:
ros::ServiceClient client = n.serviceClient<gazebo_msgs::GetWorldProperties>("/gazebo/get_world_properties");
gazebo_msgs::GetWorldProperties simtime;
.................................
while (ros::ok())
{
.................
if(client.call(simtime)){
ROS_INFO("Simtime: %lf", simtime.response.sim_time);
}else
{
ROS_ERROR("Failed to call service");
return 1;
}
....................
}
I'm not very familiar with gazebo ....The gazeborosapiplugin.cpp worked already when i use the gazeboros,no? Need i implemente the gazeborosapi_plugin.cpp somewhere? i fund this file by the way. Need i find an instant of this class in my node?? Thanks for help...
Asked by loulou0219 on 2014-03-16 22:42:48 UTC
Answers
From my perspective, it looks like the message gets always thrown if you call GetWorldProperties.
Take a look at the source code of the ros api plugin:
http://docs.ros.org/indigo/api/gazebo_ros/html/gazebo_rosapi_plugin_8cpp_source.html (line 900)
bool GazeboRosApiPlugin::getWorldProperties(gazebo_msgs::GetWorldProperties::Request &req,
gazebo_msgs::GetWorldProperties::Response &res)
{
res.sim_time = world_->GetSimTime().Double();
res.model_names.clear();
for (unsigned int i = 0; i < world_->GetModelCount(); i ++)
res.model_names.push_back(world_->GetModel(i)->GetName());
gzerr << "disablign rendering has not been implemented, rendering is always enabled\n";
res.rendering_enabled = true; //world->GetRenderEngineEnabled();
res.success = true;
res.status_message = "GetWorldProperties: got properties";
return true;
}
It gets always called, there is no if clause, I guess its a bad implementation of an developer message and no cause to worry.
Asked by m4k on 2016-08-12 12:11:20 UTC
Comments
I get the same error message when I try to get the gazebo world properties. Anyone know what this is about? Here is the code I am calling up to the line that seems to generate the error message:
def get_world_properties(): global g_get_world_properties try: if not g_get_world_properties: rospy.wait_for_service('/gazebo/get_world_properties') g_get_world_properties = rospy.ServiceProxy('/gazebo/get_world_properties', GetWorldProperties) etc
Asked by Bernhard on 2015-11-30 15:55:39 UTC