Robotics StackExchange | Archived questions

When trying to set_velocity_plugin I get make error: class gazebo::physics::World’ has no member named ‘GetPhysicsEngine’

I am using Gazebo v 9.4.1. I wish to use the setvelocityplugin as described in the tutorial, the error that I get is

error: ‘class gazebo::physics::World’ has no member named ‘GetPhysicsEngine’; did you mean ‘SetPhysicsEnabled’? physics::PhysicsEnginePtr engine = world->GetPhysicsEngine();

as the method GetPhysicsEngine isnt there in the upated Api (Link Here). I have found the function available in API 1.3.0 (Link Here).

So, do we need to update the plugin according to the new API version? Is there any plugin similar to SetVelocityPlugin compatible with the latest Gazebo version? Thanks.

Asked by sapanostic on 2018-10-30 20:17:29 UTC

Comments

Answers

You are using deprecated syntax. Try it with:

physics::PhysicsEnginePtr engine = world->Physics();

Asked by wentz on 2018-11-02 08:07:14 UTC

Comments