I have a plugin for classic Gazebo to control a vehicle that used the solution from the following question to implement braking:


I have now ported this plugin over to Ignition Gazebo (Fortress), as a System plugin, but am unable to get braking working in a similar way. My attempt looks like the following:

    void VehicleInterface::PreUpdate(
      const ignition::gazebo::UpdateInfo & _info, ignition::gazebo::EntityComponentManager & _ecm)
        auto joint_entity = this->my_model.JointByName(_ecm, this->wheel_joint_name);
        auto axis = _ecm.Component<ignition::gazebo::components::JointAxis>(joint_entity);

But the friction does not seem to have any effect. I guess you can only request the current value of the friction this way, not actually update it. This is confirmed when I look through the gz-physics source, and can't find any place where the friction from the JointAxis is used, beyond at the beginning when the initial model is created.

Is there any way to achieve this?


1 Answer 1


You are correct that gz-physics doesn't yet have a Feature for setting these properties at runtime. I've opened a feature request to implement it in gz-physics#449.

A similar Feature was requested for setting joint limits at runtime in gz-physics#96 and implemented in gz-physics#260.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.