Gazebo Sim

API Reference

9.0.0~pre1
physics/Events.hh
Go to the documentation of this file.
1/*
2 * Copyright (C) 2021 Open Source Robotics Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16*/
17#ifndef GZ_SIM_PHYSICS_EVENTS_HH_
18#define GZ_SIM_PHYSICS_EVENTS_HH_
19
20#include <optional>
21
22#include <gz/common/Event.hh>
23
25
26#include "gz/sim/config.hh"
27#include "gz/sim/Entity.hh"
28
29#include <Eigen/Geometry>
30
31namespace gz
32{
33 namespace sim
34 {
35 // Inline bracket to help doxygen filtering.
36 inline namespace GZ_SIM_VERSION_NAMESPACE {
37
38 namespace events
39 {
41
48 void(
49 const Entity& /* collision1 */,
50 const Entity& /* collision2 */,
51 const math::Vector3d & /* point */,
52 const std::optional<math::Vector3d> /* force */,
53 const std::optional<math::Vector3d> /* normal */,
54 const std::optional<double> /* depth */,
55 const size_t /* numContactsOnCollision */,
57 ContactSurfaceParams<Policy>& /* params */
58 ),
59 struct CollectContactSurfacePropertiesTag>;
60 }
61 } // namespace events
62 } // namespace sim
63} // namespace gz
64
65#endif // GZ_SIM_PHYSICS_EVENTS_HH_