Home | Tutorials | Wiki | Issues
Ask Your Question
0

error: gazebo_ros_api_plugin.cpp Disablign rendering has not been implemented, rendering is always enabled

asked 2014-03-16 22:42:48 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

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 gazebo_ros_api_plugin.cpp worked already when i use the gazebo_ros,no? Need i implemente the gazebo_ros_api_plugin.cpp somewhere? i fund this file by the way. Need i find an instant of this class in my node?? Thanks for help...

edit retag flag offensive close merge delete

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

Bernhard gravatar imageBernhard ( 2015-11-30 14:55:39 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-08-12 12:11:20 -0500

m4k gravatar image

updated 2016-08-12 12:15:50 -0500

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__ros__api__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.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2014-03-16 22:42:48 -0500

Seen: 2,773 times

Last updated: Aug 12 '16