Class

RobotStateClient

RobotStateClient()

Constructor

# new RobotStateClient()

Client for the RobotState service.

View Source bosdyn-client/robot_state.js, line 7

Extends

  • BaseClient

Methods

Convenience function which first requests a robots hardware configuration followed by requests to get link models for all robot links.

View Source bosdyn-client/robot_state.js, line 83

robot_state_pb.HardwareConfiguration with all link models filled out.
robot_state_pb.HardwareConfiguration

# get_robot_hardware_configuration(args) → {Promise.<robot_state_pb.RobotHardwareConfigurationResponse>}

Obtain current hardware configuration of robot.
Parameters:
Name Type Description
args Object Extra arguments for controlling RPC details.

View Source bosdyn-client/robot_state.js, line 53

Problem communicating with the robot.
RpcError
The hardware configuration, which includes the link names.
Promise.<robot_state_pb.RobotHardwareConfigurationResponse>
Obtain link model OBJ for a specific link.
Parameters:
Name Type Description
link_name string Name of the link to get the model.
args Object Extra arguments for controlling RPC details.

View Source bosdyn-client/robot_state.js, line 72

Problem communicating with the robot.
RpcError
The bosdyn.api.Skeleton.Link.ObjModel for the specified link.
Promise.<robot_state_pb.Skeleton.Link.ObjModel>

# get_robot_metrics(args) → {Promise.<robot_state_pb.RobotMetricsResponse>}

Obtain robot metrics, such as distance traveled or time powered on.
Parameters:
Name Type Description
args Object Extra arguments for controlling RPC details.

View Source bosdyn-client/robot_state.js, line 41

Problem communicating with the robot.
RpcError
All of the current robot metrics.
Promise.<robot_state_pb.RobotMetricsResponse>

# get_robot_state(args) → {Promise.<robot_state_pb.RobotStateResponse>}

Obtain current state of the robot.
Parameters:
Name Type Description
args Object Extra arguments for controlling RPC details.

View Source bosdyn-client/robot_state.js, line 30

Problem communicating with the robot.
RpcError
The current robot state.
Promise.<robot_state_pb.RobotStateResponse>

RobotStateClient(namenullable)

Constructor

# new RobotStateClient(namenullable)

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

View Source bosdyn-client/robot_state.js, line 20

Methods

Convenience function which first requests a robots hardware configuration followed by requests to get link models for all robot links.

View Source bosdyn-client/robot_state.js, line 83

robot_state_pb.HardwareConfiguration with all link models filled out.
robot_state_pb.HardwareConfiguration

# get_robot_hardware_configuration(args) → {Promise.<robot_state_pb.RobotHardwareConfigurationResponse>}

Obtain current hardware configuration of robot.
Parameters:
Name Type Description
args Object Extra arguments for controlling RPC details.

View Source bosdyn-client/robot_state.js, line 53

Problem communicating with the robot.
RpcError
The hardware configuration, which includes the link names.
Promise.<robot_state_pb.RobotHardwareConfigurationResponse>
Obtain link model OBJ for a specific link.
Parameters:
Name Type Description
link_name string Name of the link to get the model.
args Object Extra arguments for controlling RPC details.

View Source bosdyn-client/robot_state.js, line 72

Problem communicating with the robot.
RpcError
The bosdyn.api.Skeleton.Link.ObjModel for the specified link.
Promise.<robot_state_pb.Skeleton.Link.ObjModel>

# get_robot_metrics(args) → {Promise.<robot_state_pb.RobotMetricsResponse>}

Obtain robot metrics, such as distance traveled or time powered on.
Parameters:
Name Type Description
args Object Extra arguments for controlling RPC details.

View Source bosdyn-client/robot_state.js, line 41

Problem communicating with the robot.
RpcError
All of the current robot metrics.
Promise.<robot_state_pb.RobotMetricsResponse>

# get_robot_state(args) → {Promise.<robot_state_pb.RobotStateResponse>}

Obtain current state of the robot.
Parameters:
Name Type Description
args Object Extra arguments for controlling RPC details.

View Source bosdyn-client/robot_state.js, line 30

Problem communicating with the robot.
RpcError
The current robot state.
Promise.<robot_state_pb.RobotStateResponse>