A gRPC-web client for a SLAM service.
Readonly
The name of the resource.
Send/Receive arbitrary commands to the resource.
The command to execute.
const result = await resource.doCommand({ name: 'myCommand', args: { key: 'value' },}); Copy
const result = await resource.doCommand({ name: 'myCommand', args: { key: 'value' },});
Optional
Get the current position of the specified source component in the point cloud SLAM map.
const slam = new VIAM.SlamClient(machine, 'my_slam');// Get the current position of the robot in the SLAM mapconst position = await slam.getPosition();console.log('Current position:', position); Copy
const slam = new VIAM.SlamClient(machine, 'my_slam');// Get the current position of the robot in the SLAM mapconst position = await slam.getPosition();console.log('Current position:', position);
Get information on the properties of the current SLAM service.
const slam = new VIAM.SlamClient(machine, 'my_slam');// Get the properties of the SLAM serviceconst properties = await slam.getProperties();console.log('SLAM properties:', properties); Copy
const slam = new VIAM.SlamClient(machine, 'my_slam');// Get the properties of the SLAM serviceconst properties = await slam.getProperties();console.log('SLAM properties:', properties);
A gRPC-web client for a SLAM service.