Python binding request for Waypoint in_lift (#424)

Posted by @cwrx777:

Hi,

I would like to request for python binding for in_lift

and how do we use this in python?

Posted by @mxgrey:

This could be a good opportunity to contribute by copying the binding that was already done for Destination::inside_lift and applying the same kind of binding to Waypoint.

and how do we use this in python?

Once you’ve received a Python wrapper of a LiftProperties instance (by calling destination.inside_lift or a future waypoint.in_lift if a binding is made for it) then you can call the various properties like .name and .location on it. Note that .is_in_lift() is a function (not a property) so it needs to be followed by parentheses whereas properties like .name and .location should not be followed by parentheses.

Posted by @cwrx777:

Hi @mxgrey,

Thanks for the pointers. I have created the PR below for review.

  • open-rmf/rmf_ros2#326

Edited by @cwrx777 at 2024-02-08T03:25:56Z