Class

WorldObjectClient

WorldObjectClient()

Constructor

# new WorldObjectClient()

Client for World Object service.

View Source bosdyn-client/world_object.js, line 9

Extends

  • BaseClient

Members

*

# readonly timesync_endpoint

Accessor for timesync-endpoint that is grabbed via 'update_from()'.

View Source bosdyn-client/world_object.js, line 47

Methods

# list_world_objects(object_typenullable, time_start_pointnullable, argsopt) → {Promise.<world_object_pb.ListWorldObjectResponse>}

Get a list of World Objects.
Parameters:
Name Type Attributes Default Description
object_type Array.<world_object_pb.WorldObjectType> <nullable>
null Specific types to include in the response, all other types will be filtered out.
time_start_point number <nullable>
null A client timestamp to filter objects in the response. All objects will have a timestamp after this time.
args Object <optional>
Extra arguments for controlling RPC details.

View Source bosdyn-client/world_object.js, line 66

Problem communicating with the robot.
RpcError
Couldn't convert the timestamp into robot time.
NoTimeSyncError
The response message, which includes the filtered list of all world objects.
Promise.<world_object_pb.ListWorldObjectResponse>

# mutate_world_objects(mutation_req, argsopt) → {Promise.<world_object_pb.MutateWorldObjectResponse>|Promise.<void>}

Mutate (add, change, delete) world objects.
Parameters:
Name Type Attributes Description
mutation_req world_object_pb.MutateWorldObjectRequest The request including the object to be mutated and the type of mutation.
args Object <optional>
Extra arguments for controlling RPC details.

View Source bosdyn-client/world_object.js, line 86

Problem communicating with the robot.
RpcError
Couldn't convert the timestamp into robot time.
NoTimeSyncError
The response message, which includes the filtered list of all world objects.
Promise.<world_object_pb.MutateWorldObjectResponse> | Promise.<void>

# async update_from(other) → {void}

Update instance from another object.
Parameters:
Name Type Description
other Object The object where to copy from.

View Source bosdyn-client/world_object.js, line 32

void

WorldObjectClient(namenullable)

Constructor

# new WorldObjectClient(namenullable)

Create an instance of WorldObjectClient's class.
Parameters:
Name Type Attributes Default Description
name string <nullable>
null The BaseClient's name.

View Source bosdyn-client/world_object.js, line 22

Members

*

# readonly timesync_endpoint

Accessor for timesync-endpoint that is grabbed via 'update_from()'.

View Source bosdyn-client/world_object.js, line 47

Methods

# list_world_objects(object_typenullable, time_start_pointnullable, argsopt) → {Promise.<world_object_pb.ListWorldObjectResponse>}

Get a list of World Objects.
Parameters:
Name Type Attributes Default Description
object_type Array.<world_object_pb.WorldObjectType> <nullable>
null Specific types to include in the response, all other types will be filtered out.
time_start_point number <nullable>
null A client timestamp to filter objects in the response. All objects will have a timestamp after this time.
args Object <optional>
Extra arguments for controlling RPC details.

View Source bosdyn-client/world_object.js, line 66

Problem communicating with the robot.
RpcError
Couldn't convert the timestamp into robot time.
NoTimeSyncError
The response message, which includes the filtered list of all world objects.
Promise.<world_object_pb.ListWorldObjectResponse>

# mutate_world_objects(mutation_req, argsopt) → {Promise.<world_object_pb.MutateWorldObjectResponse>|Promise.<void>}

Mutate (add, change, delete) world objects.
Parameters:
Name Type Attributes Description
mutation_req world_object_pb.MutateWorldObjectRequest The request including the object to be mutated and the type of mutation.
args Object <optional>
Extra arguments for controlling RPC details.

View Source bosdyn-client/world_object.js, line 86

Problem communicating with the robot.
RpcError
Couldn't convert the timestamp into robot time.
NoTimeSyncError
The response message, which includes the filtered list of all world objects.
Promise.<world_object_pb.MutateWorldObjectResponse> | Promise.<void>

# async update_from(other) → {void}

Update instance from another object.
Parameters:
Name Type Description
other Object The object where to copy from.

View Source bosdyn-client/world_object.js, line 32

void