void GazeboFwDynamicsPlugin::OnUpdate(const common::UpdateInfo& _info) { if (kPrintOnUpdates) { gzdbg << __FUNCTION__ << "() called." << std::endl; } if (!pubs_and_subs_created_) { CreatePubsAndSubs(); pubs_and_subs_created_ = true; } UpdateForcesAndMoments(); }
// This gets called by the world update start event. void GazeboMotorModel::OnUpdate(const common::UpdateInfo& _info) { sampling_time_ = _info.simTime.Double() - prev_sim_time_; prev_sim_time_ = _info.simTime.Double(); UpdateForcesAndMoments(); Publish(); }
// Called by the world update start event void GazeboMotorModel::OnUpdate(const common::UpdateInfo& /*_info*/) { UpdateForcesAndMoments(); Publish(); }