optimal vitural function
This commit is contained in:
@@ -144,26 +144,14 @@ namespace NavigationExample
|
||||
[return: MarshalAs(UnmanagedType.I1)]
|
||||
public static extern bool navigation_move_to_nodes_edges(NavigationHandle handle, IntPtr nodes, UIntPtr node_count, IntPtr edges, UIntPtr edge_count, PoseStamped goal);
|
||||
|
||||
[DllImport(DllName, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
|
||||
[return: MarshalAs(UnmanagedType.I1)]
|
||||
public static extern bool navigation_dock_to(NavigationHandle handle, string marker, PoseStamped goal);
|
||||
|
||||
[DllImport(DllName, CallingConvention = CallingConvention.Cdecl)]
|
||||
[return: MarshalAs(UnmanagedType.I1)]
|
||||
public static extern bool navigation_dock_to_order(NavigationHandle handle, Order order, string marker, PoseStamped goal);
|
||||
|
||||
[DllImport(DllName, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
|
||||
[return: MarshalAs(UnmanagedType.I1)]
|
||||
public static extern bool navigation_dock_to_nodes_edges(NavigationHandle handle, string marker, Node[] nodes, Edge[] edges, PoseStamped goal);
|
||||
|
||||
[DllImport(DllName, CallingConvention = CallingConvention.Cdecl)]
|
||||
[return: MarshalAs(UnmanagedType.I1)]
|
||||
public static extern bool navigation_move_straight_to(NavigationHandle handle, double distance);
|
||||
|
||||
/// <summary>Rotate in place to align with target orientation (radians).</summary>
|
||||
[DllImport(DllName, CallingConvention = CallingConvention.Cdecl)]
|
||||
[return: MarshalAs(UnmanagedType.I1)]
|
||||
public static extern bool navigation_rotate_to(NavigationHandle handle, double goal_yaw);
|
||||
// navigation_dock_to, navigation_dock_to_order, navigation_dock_to_nodes_edges,
|
||||
// navigation_move_straight_to and navigation_rotate_to no longer exist in the native
|
||||
// library. They pushed a goal past the mission layer, so one of them arriving mid-route
|
||||
// replaced the leg the mission queue was running without the queue noticing.
|
||||
//
|
||||
// Docking, go-straight and rotate are per-leg properties of an order now: set `profile:`
|
||||
// on the leg (`docking | go_straight | rotate`) plus `marker` for docking, then send it
|
||||
// through navigation_move_to_order or navigation_move_to_nodes_edges.
|
||||
|
||||
[DllImport(DllName, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
|
||||
[return: MarshalAs(UnmanagedType.I1)]
|
||||
|
||||
Reference in New Issue
Block a user