This file is indexed.

/usr/share/gazebo-9/worlds/sim_events.world is in gazebo9-common 9.0.0+dfsg5-3ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
<?xml version="1.0"?>
<sdf version="1.5">
  <world name="default">
    <include>
      <uri>model://ground_plane</uri>
    </include>

    <include>
      <uri>model://sun</uri>
    </include>

    <plugin name="SimEvents" filename="libSimEventsPlugin.so">

    <session></session>

    <region>
      <name>start</name>
      <volume>
          <!-- min and max are ignition::math::Vector3d -->
          <!-- around the origin -->
          <min>-3 -3 -3</min>
          <max>3 3 3</max>
     </volume>
    </region>

    <region>
      <name>end</name>
      <volume>
        <!-- around 10,10  -->
        <min>7 7 0</min>
        <max>13 13 3</max>
      </volume>
    </region>

    <event>
      <name>NewBeer</name>
      <type>existence</type>
      <model>beer</model>
    </event>

    <event>
      <name>Inactive</name>
      <type>sim_state</type>
      <!-- elements can be active or not,
      and this property can be set at runtime or in the world file
      with the active element
      by default, they are.
      -->
      <active>false</active>
    </event>

    <event>
      <name>All_spawn_and_delete</name>
      <type>existence</type>
      <!-- no model  is specified -->
    </event>

    <!-- when the simulation state changes (pause/play) -->
    <event>
      <name>Sim</name>
      <type>sim_state</type>
    </event>

    <!-- bounding box intersection event-->
    <event>
      <name>Can1_in_0_0</name>
      <type>inclusion</type>
      <model>can1</model>
      <region>start</region>
    </event>

    <!-- bounding box inclusion event -->
    <event>
      <name>Can1_in_10_10</name>
      <type>inclusion</type>
      <model>can1</model>
      <region>end</region>
    </event>

    <!-- Joint trigger events -->
    <!-- position (linear or angular) -->
    <event>
      <name>joint_position</name>
      <type>joint</type>
      <model>revoluter</model>
      <joint>joint</joint>
      <range>
        <type>position</type>
        <min>5</min>
        <max>10</max>
      </range>
    </event>


    <!-- Angle: must be in range -PI to PI  -->
    <event>
      <name>joint_angle</name>
      <type>joint</type>
      <model>revoluter</model>
      <joint>joint</joint>
      <range>
        <type>normalized_angle</type>
        <min>3</min>
        <max>3.1416</max>
      </range>
    </event>

    <!-- Velocity -->
    <event>
      <name>joint_velocity</name>
      <type>joint</type>
      <model>revoluter</model>
      <joint>joint</joint>
      <range>
        <type>velocity</type>
        <min>3</min>
        <max>3.3</max>
      </range>
    </event>


    <!-- Applied Force -->
    <event>
      <name>joint_force</name>
      <type>joint</type>
      <model>revoluter</model>
      <joint>joint</joint>
        <type>applied_force</type>
        <range>
          <type>applied_force</type>
          <min>3</min>
          <max>3.3</max>
        </range>
    </event>

    <!-- Close the plugin element  -->
    </plugin>

    <!--
    spawn a few beers in the world (not coke cans, they have
    meshes that can't be loaded with all engines yet
    -->
    <include>
      <pose>0 0 0 0 0 0</pose>
      <name>can1</name>
      <uri>model://beer</uri>
    </include>

    <include>
      <pose>5 0 0 0 0 0</pose>
      <name>can2</name>
      <uri>model://beer</uri>
    </include>

    <include>
      <pose>10 0 0 0 0 0</pose>
      <uri>model://beer</uri>
      <name>can3</name>
    </include>

    <include>
      <pose>15 0 0 0 0 0</pose>
      <name>can4</name>
      <uri>model://beer</uri>
    </include>

<!--
Model with a revolute joint
-->
    <model name='revoluter'>
        <pose>0.5 0.5 0.5 0 0 0</pose>
        <link name='base'>
        <pose>0 0 0 0 -0 0</pose>
          <visual name='visual'>
            <geometry>
              <box>
                <size>0.5 1 1</size>
              </box>
            </geometry>
            <material>
              <script>
                <uri>file://media/materials/scripts/gazebo.material</uri>
                <name>Gazebo/Orange</name>
              </script>
            </material>
          </visual>
          <collision name='collision'>
            <geometry>
              <box>
                <size>0.5 1 1</size>
              </box>
            </geometry>
          </collision>
        </link>

        <link name='needle'>
          <pose>0.25 0 -0.2 0 -0 0</pose>
            <visual name='visual'>
              <geometry>
                <cylinder>
                  <radius>0.05</radius>
                  <length>0.5</length>
                </cylinder>
              </geometry>
            </visual>

          <collision name='collision'>
            <geometry>
              <cylinder>
                <radius>0.05</radius>
                <length>0.5</length>
              </cylinder>
            </geometry>
           </collision>
        </link>

        <joint name='joint' type='revolute'>
          <parent>base</parent>
          <child>needle</child>

          <pose>0 0 0 0 0 0</pose>
          <axis>
            <xyz>1 0 0</xyz>
          </axis>
        </joint>

        <!-- this joint keeps the model from moving around -->
        <joint name ='fix' type='fixed'>
          <parent>world</parent>
          <child>base</child>
        </joint>

    </model>

  </world>
</sdf>