Gazebo Sim

API Reference

9.0.0
Collision.hh
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018 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_COMPONENTS_COLLISION_HH_
18#define GZ_SIM_COMPONENTS_COLLISION_HH_
19
20#include <sdf/Element.hh>
21
25#include <gz/sim/config.hh>
26
27namespace gz
28{
29namespace sim
30{
31// Inline bracket to help doxygen filtering.
32inline namespace GZ_SIM_VERSION_NAMESPACE {
33namespace serializers
34{
37}
38
39namespace components
40{
44 "gz_sim_components.Collision", Collision)
45
46 // TODO(anyone) The sdf::Collision DOM object does not yet contain
47 // surface information.
49 using CollisionElement =
50 Component<sdf::Collision, class CollisionElementTag,
51 serializers::CollisionElementSerializer>;
52 GZ_SIM_REGISTER_COMPONENT("gz_sim_components.CollisionElement",
53 CollisionElement)
54
58 using EnableContactSurfaceCustomization =
59 Component<bool, class EnableContactSurfaceCustomizationTag>;
61 "gz_sim_components.EnableContactSurfaceCustomization",
62 EnableContactSurfaceCustomization)
63}
64}
65}
66}
67
68#endif