# Gazebo elevator problem

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 close merge delete

Sort by » oldest newest most voted

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.

more