Lua API#
Instantiate a navigation controller
- Parameters:
handle – A unique handle to associate to the controller
behavior – The obstacle avoidance behavior
kinematics – The kinematics
radius – The radius
- Returns:
handle – The handle or -1 in case of failure
Get the value of one of the navigation behavior properties
- Parameters:
handle – The controller handle
name – The property name
- Returns:
value – The property value
Set the value of one of the navigation behavior properties
- Parameters:
handle – The controller handle
name – The property name
value – The property value
Get the handles of all the agents
- Returns:
handles – The handles
Get all the agent properties
- Parameters:
handle – The agent handle
owner – See PropertyOwner. Set to negative to get all properties
- Returns:
properties – The properties
Get the value of an agent’s property
- Parameters:
handle – The agent handle
owner – See PropertyOwner
name – The property name
- Returns:
value – The property value
Set the value of an agent’s property
- Parameters:
handle – The agent handle
owner – See PropertyOwner
name – The property name
value – The property value
TODO
- Parameters:
coordinate_index – TODO
from – TODO
to – TODO
TODO
- Parameters:
coordinate_index – TODO
- Returns:
enabled – TODO
from – TODO
to – TODO
TODO
- Parameters:
handle – The controller handle
position – The target position
tolerance – The target tolerance
TODO
- Parameters:
handle – The controller handle
position – The target position
orientation – The target orientation
position_tolerance – The target tolerance
orientation_tolerance – The target tolerance
TODO
- Parameters:
handle – The controller handle
point – The target position
TODO
- Parameters:
handle – The controller handle
position – The target position
orientation – The target orientation
TODO
- Parameters:
handle – The agent handle
- Returns:
point – The 2d target
TODO
- Parameters:
handle – The controller handle
- Returns:
position – The 3d position
orientation – The orientation in radians
TODO
- Parameters:
handle – The controller handle
position – The 3d position
orientation – The orientation in radians
TODO
- Parameters:
handle – The controller handle
- Returns:
velocity – The 2d velocity
angular_speed – The angular speed in radians/s
TODO
- Parameters:
handle – The controller handle
velocity – The 3d velocity
angular_speed – The angular speed in radians/s
TODO
- Parameters:
handle – The controller handle
value – The value
TODO
- Parameters:
handle – The controller handle
value – The value
TODO
- Parameters:
handle – The controller handle
- Returns:
value – The value
TODO
- Parameters:
handle – The controller handle
value – The value
TODO
- Parameters:
handle – The controller handle
- Returns:
value – The value
TODO
- Parameters:
handle – The controller handle
value – The value
TODO
- Parameters:
handle – The controller handle
- Returns:
value – The value
TODO
- Parameters:
handle – The controller handle
value – The value
TODO
- Parameters:
handle – The controller handle
value – The value
TODO
- Parameters:
handle – The controller handle
value – The value
TODO
- Parameters:
handle – The controller handle
value – The value (0 for relative, 1 for absolute)
TODO
- Parameters:
handle – The controller handle
velocity – The target 3d velocity
TODO
- Parameters:
handle – The controller handle
time_step – The time step
- Returns:
velocity – The 3d velocity
angular_speed – The angular speed in radians/s
state – The angular speed in radians/s
TODO
- Parameters:
handle – The controller handle
obstacles – The controller handle
TODO
- Parameters:
handle – The controller handle
neighbors – The obstacles
TODO
- Parameters:
handle – The controller handle
obstacles – The lines
TODO
- Parameters:
handle – The controller handle
- Returns:
state – TODO
TODO
- Parameters:
handle – The controller handle
- Returns:
speeds – TODO
TODO
- Parameters:
handle – The object handle
radius – The object radius
TODO
- Parameters:
p1 – The first vertex
p2 – The second vertex
TODO
- Parameters:
handle – The object handle
yaml – The yaml text
- Returns:
handle – The handle or -1 in case of failure
TODO
- Parameters:
handle – The agent handle
TODO
- Parameters:
handle – The agent handle
frame – The value (0 for relative, 1 for absolute)
- Returns:
velocity – The horizontal velocity
angular_speed – The angular speed in radians/s
TODO
- Parameters:
handle – The agent handle
- Returns:
speeds – TODO
TODO
- Parameters:
config – The recording configuration
Set the simulation reference frame.
- Parameters:
handle – The handle of the frame (-1 for use internal frame)