Gazebo | Ignition | Community
Ask Your Question

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

asked 2018-10-30 20:17:29 -0500

sapanostic gravatar image

I am using Gazebo v 9.4.1. I wish to use the set_velocity_plugin 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 Set_Velocity_Plugin compatible with the latest Gazebo version? Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2018-11-02 08:07:14 -0500

wentz gravatar image

You are using deprecated syntax. Try it with:

physics::PhysicsEnginePtr engine = world->Physics();
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-10-30 20:17:29 -0500

Seen: 3,171 times

Last updated: Nov 02 '18