Interface Robot

Hierarchy

  • Robot

Implemented by

Properties

on: ((type: "reconnected" | "disconnected", listener: Callback) => void)

Type declaration

    • (type: "reconnected" | "disconnected", listener: Callback): void
    • Alpha

      Call a function when an event of either 'reconnected' or 'disconnected' is triggered. Note that these events will only be triggered on WebRTC connections.

      Parameters

      • type: "reconnected" | "disconnected"

        The event ('reconnected' or 'disconnected') that was triggered.

      • listener: Callback

        The function to call

      Returns void

Operations

  • Alpha

    Blocks on the specified operation on the robot. This function will only return when the specific operation has finished or has been cancelled.

    Parameters

    • id: string

      ID of operation to block on.

    Returns Promise<void>

  • Alpha

    Cancels the specified operation on the robot.

    Parameters

    • id: string

      ID of operation to kill.

    Returns Promise<void>

  • Alpha

    Get the list of operations currently running on the robot.

    Returns Promise<Operation[]>

  • Alpha

    Cancel all current and outstanding operations for the robot and stop all actuators and movement.

    Parameters

    • Optional extra: Map<string, StructType>

      Any extra parameters to pass to the components' stop methods, keyed on the component's resource name.

    Returns Promise<void>

Discovery

  • Alpha

    Get the list of discovered component configurations.

    Parameters

    • queries: DiscoveryQuery[]

      The list of component models to discovery.

    Returns Promise<Discovery[]>

Frame System

  • Alpha

    Transform a given source point cloud from the reference frame to a new specified destination which is a reference frame.

    Parameters

    • pointCloudPCD: Uint8Array

      The point clouds to transform. This should be in the PCD format encoded into bytes: https://pointclouds.org/documentation/tutorials/pcd_file_format.html

    • source: string

      The reference frame of the point cloud.

    • destination: string

      The reference frame into which the source data should be transformed, if unset this defaults to the "world" reference frame. Do not move the robot between the generation of the initial pointcloud and the receipt of the transformed pointcloud because that will make the transformations inaccurate.

    Returns Promise<Uint8Array>

Status

Resources

Generated using TypeDoc