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/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...
↧