Ignition Gazebo

API Reference

6.6.0
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 IGNITION_GAZEBO_PHYSICS_EVENTS_HH_
18 #define IGNITION_GAZEBO_PHYSICS_EVENTS_HH_
19 
20 #include <optional>
21 
22 #include <ignition/common/Event.hh>
23 
24 #include <ignition/physics/ContactProperties.hh>
25 
26 #include "ignition/gazebo/config.hh"
28 
29 #include <Eigen/Geometry>
30 
31 namespace ignition
32 {
33  namespace gazebo
34  {
35  // Inline bracket to help doxygen filtering.
36  inline namespace IGNITION_GAZEBO_VERSION_NAMESPACE {
37 
38  namespace events
39  {
40  using Policy = physics::FeaturePolicy3d;
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 */,
56  physics::SetContactPropertiesCallbackFeature::
57  ContactSurfaceParams<Policy>& /* params */
58  ),
59  struct CollectContactSurfacePropertiesTag>;
60  }
61  } // namespace events
62  } // namespace gazebo
63 } // namespace ignition
64 
65 #endif // IGNITION_GAZEBO_PHYSICS_EVENTS_HH_
physics::FeaturePolicy3d Policy
Definition: physics/Events.hh:40
This library is part of the Ignition Robotics project.
uint64_t Entity
An Entity identifies a single object in simulation such as a model, link, or light. At its core, an Entity is just an identifier.
Definition: Entity.hh:59