Gazebo | Ignition | Community
Ask Your Question
0

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 -0600

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
0

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

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

Stats

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

Seen: 3,236 times

Last updated: Nov 02 '18