Home | Tutorials | Wiki | Issues
Ask Your Question
0

Gazebo elevator problem

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

Valoubg69 gravatar image

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

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 -0600

kumpakri gravatar image

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

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
Login/Signup to Answer

Question Tools

1 follower

Stats

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

Seen: 206 times

Last updated: Oct 23