Gazebo | Ignition | Community
Ask Your Question
0

Gazebo elevator problem

asked 2018-10-19 02:26:58 -0500

Valoubg69 gravatar image

updated 2018-10-22 15:48:34 -0500

chapulina gravatar image

Hello eveyrone, I am trying to implement an elevator in my world file. For that I am using the file elevator.world, but the problem is that I would like to put the elevator in another position instead of (0,0,0,0,0,0) but when I move the elevator in another place, the elevator doesn't work anymore. I don't really know where it's come from so if somebody have some idea or a solution to give me it will be great thank you :)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-10-23 03:13:17 -0500

kumpakri gravatar image

updated 2018-10-23 03:15:07 -0500

Do I understand correctly, that you are using the example from this article? And the elevator is dependent on OccupiedEvent plugin. If you search through the documentation of this plugin, you will find those lines

    <plugin filename="libSimEventsPlugin.so" name="event_plugin">
      <region>
        <name>region1</name>
        <volume>
          <min>1.5 -1 0</min>
          <max>2.5 1 1</max>
        </volume>
      </region>

      <event>
        <name>region1_event</name>
        <type>occupied</type>
        <topic>~/elevator</topic>
        <region>region1</region>
        <msg_data>0</msg_data>
      </event>
   </plugin>

As you can see, apart of the plugin controlling the elevator behavior, you use also plugin giving the information to the elevator plugin. Unless you edited also the region1, the elevator still scans the presence of an object at the original area.

You would need to edit the region1 coordinates to match the exit of your shifted elevator.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-10-19 02:26:58 -0500

Seen: 2,204 times

Last updated: Oct 23 '18