Command Line
Command-line utility code for interacting with robot services.
- class bosdyn.client.command_line.Command(subparsers, command_dict)[source]
Bases:
objectCommand-line command.
- Parameters:
subparsers – List of argument parsers.
command_dict – Dictionary of command names which take parsed options.
- NAME = None
- NEED_AUTHENTICATION = True
- class bosdyn.client.command_line.Subcommands(subparsers, command_dict, subcommands)[source]
Bases:
CommandRun subcommands.
- Parameters:
subparsers – List of argument parsers.
command_dict – Dictionary of command names which take parsed options.
subcommands – List of subcommands to run.
- class bosdyn.client.command_line.DirectoryCommands(subparsers, command_dict)[source]
Bases:
SubcommandsCommands related to the directory service.
- NAME = 'dir'
- class bosdyn.client.command_line.DirectoryListCommand(subparsers, command_dict)[source]
Bases:
CommandList all services in the directory.
- NAME = 'list'
- class bosdyn.client.command_line.DirectoryGetCommand(subparsers, command_dict)[source]
Bases:
CommandGet entry for a given service in the directory.
- NAME = 'get'
- class bosdyn.client.command_line.DirectoryRegisterCommand(subparsers, command_dict)[source]
Bases:
CommandRegister entry for a service in the directory.
- NAME = 'register'
- class bosdyn.client.command_line.DirectoryUnregisterCommand(subparsers, command_dict)[source]
Bases:
CommandUnregister entry for a service in the directory.
- NAME = 'unregister'
- class bosdyn.client.command_line.PayloadCommands(subparsers, command_dict)[source]
Bases:
SubcommandsCommands related to the payload and payload registration services.
- NAME = 'payload'
- class bosdyn.client.command_line.PayloadListCommand(subparsers, command_dict)[source]
Bases:
CommandList all payloads registered with the robot.
- NAME = 'list'
- class bosdyn.client.command_line.PayloadRegisterCommand(subparsers, command_dict)[source]
Bases:
CommandRegister a payload with the robot.
- NAME = 'register'
- class bosdyn.client.command_line.FaultCommands(subparsers, command_dict)[source]
Bases:
SubcommandsCommands related to the fault service and robot state service (for fault reading).
- NAME = 'fault'
- class bosdyn.client.command_line.FaultShowCommand(subparsers, command_dict)[source]
Bases:
CommandShow all faults currently active in robot state.
- NAME = 'show'
- class bosdyn.client.command_line.FaultWatchCommand(subparsers, command_dict)[source]
Bases:
CommandWatch all faults in robot state and print them out.
- NAME = 'watch'
- class bosdyn.client.command_line.LogStatusCommands(subparsers, command_dict)[source]
Bases:
SubcommandsStart, update and terminate experiment logs, start and terminate retro logs and check status of active logs for robot.
- NAME = 'log-status'
- NEED_AUTHENTICATION = True
- class bosdyn.client.command_line.GetLogCommand(subparsers, command_dict)[source]
Bases:
CommandGet log status but log id.
- NAME = 'get'
- class bosdyn.client.command_line.GetActiveLogStatusesCommand(subparsers, command_dict)[source]
Bases:
CommandGet active log bundles for robot.
- NAME = 'active'
- class bosdyn.client.command_line.ExperimentLogCommand(subparsers, command_dict)[source]
Bases:
SubcommandsGive experiment log commands to robot.
- NAME = 'experiment'
- class bosdyn.client.command_line.StartTimedExperimentLogCommand(subparsers, command_dict)[source]
Bases:
CommandStart a timed experiment log.
- NAME = 'timed'
- class bosdyn.client.command_line.StartContinuousExperimentLogCommand(subparsers, command_dict)[source]
Bases:
CommandStart a continuous experiment log.
- NAME = 'continuous'
- class bosdyn.client.command_line.StartRetroLogCommand(subparsers, command_dict)[source]
Bases:
CommandStart a retro log.
- NAME = 'retro'
- class bosdyn.client.command_line.TerminateLogCommand(subparsers, command_dict)[source]
Bases:
CommandTerminate log gathering process.
- NAME = 'terminate'
- class bosdyn.client.command_line.RobotIdCommand(subparsers, command_dict)[source]
Bases:
CommandShow robot-id.
- NAME = 'id'
- NEED_AUTHENTICATION = False
- class bosdyn.client.command_line.DataBufferCommands(subparsers, command_dict)[source]
Bases:
SubcommandsCommands related to the data-buffer service.
- NAME = 'log'
- class bosdyn.client.command_line.TextMsgCommand(subparsers, command_dict)[source]
Bases:
CommandSend a text-message to the data buffer to be logged.
- NAME = 'textmsg'
- class bosdyn.client.command_line.OperatorCommentCommand(subparsers, command_dict)[source]
Bases:
CommandSend an operator comment to the robot to be logged.
- NAME = 'comment'
- class bosdyn.client.command_line.DataServiceCommands(subparsers, command_dict)[source]
Bases:
SubcommandsCommands for querying the data-service.
- NAME = 'data'
- class bosdyn.client.command_line.GetDataBufferEventsCommentsCommand(subparsers, command_dict)[source]
Bases:
CommandParent class for commands grabbing operator comment and events.
- class bosdyn.client.command_line.GetDataBufferCommentsCommand(subparsers, command_dict)[source]
Bases:
GetDataBufferEventsCommentsCommandGet operator comments from the robot.
- NAME = 'comments'
- class bosdyn.client.command_line.GetDataBufferEventsCommand(subparsers, command_dict)[source]
Bases:
GetDataBufferEventsCommentsCommandGet events from the robot.
- NAME = 'events'
- class bosdyn.client.command_line.GetDataBufferStatusCommand(subparsers, command_dict)[source]
Bases:
CommandGet status of data-buffer on robot.
- NAME = 'status'
- class bosdyn.client.command_line.RobotStateCommands(subparsers, command_dict)[source]
Bases:
SubcommandsCommands for querying robot state.
- NAME = 'state'
- class bosdyn.client.command_line.FullStateCommand(subparsers, command_dict)[source]
Bases:
CommandShow robot state.
- NAME = 'full'
- class bosdyn.client.command_line.HardwareConfigurationCommand(subparsers, command_dict)[source]
Bases:
CommandShow robot hardware configuration.
- NAME = 'hardware'
- class bosdyn.client.command_line.RobotModel(subparsers, command_dict)[source]
Bases:
CommandWrite robot URDF and mesh to local files.
- NAME = 'model'
- NEED_AUTHENTICATION = False
- class bosdyn.client.command_line.MetricsCommand(subparsers, command_dict)[source]
Bases:
CommandShow metrics (runtime, etc…).
- NAME = 'metrics'
- class bosdyn.client.command_line.TimeSyncCommand(subparsers, command_dict)[source]
Bases:
CommandFind clock difference between this and the robot clock.
- NAME = 'time-sync'
- class bosdyn.client.command_line.LicenseCommand(subparsers, command_dict)[source]
Bases:
CommandShow installed license.
- NAME = 'license'
- class bosdyn.client.command_line.LeaseCommands(subparsers, command_dict)[source]
Bases:
SubcommandsCommands related to the lease service.
- NAME = 'lease'
- class bosdyn.client.command_line.LeaseListCommand(subparsers, command_dict)[source]
Bases:
CommandList all leases.
- NAME = 'list'
- class bosdyn.client.command_line.EstopCommands(subparsers, command_dict)[source]
Bases:
SubcommandsCommands for interacting with robot estop service.
- NAME = 'estop'
- class bosdyn.client.command_line.GetEstopConfigCommand(subparsers, command_dict)[source]
Bases:
CommandGet estop config of estop service.
- NAME = 'config'
- class bosdyn.client.command_line.GetEstopStatusCommand(subparsers, command_dict)[source]
Bases:
CommandGet estop status of estop service.
- NAME = 'status'
- class bosdyn.client.command_line.BecomeEstopCommand(subparsers, command_dict)[source]
Bases:
CommandGrab and hold estop until Ctl-C.
- NAME = 'become-estop'
- class bosdyn.client.command_line.OldBecomeEstopCommand(subparsers, command_dict)[source]
Bases:
BecomeEstopCommandOld version of BecomeEstopCommand.
- class bosdyn.client.command_line.ImageCommands(subparsers, command_dict)[source]
Bases:
SubcommandsCommands for querying images.
- NAME = 'image'
- class bosdyn.client.command_line.ListImageSourcesCommand(subparsers, command_dict)[source]
Bases:
CommandList image sources.
- NAME = 'list-sources'
- class bosdyn.client.command_line.GetImageCommand(subparsers, command_dict)[source]
Bases:
CommandGet an image from the robot and write it to an image file.
- NAME = 'get-image'
- class bosdyn.client.command_line.LocalGridCommands(subparsers, command_dict)[source]
Bases:
SubcommandsCommands for querying local grid maps.
- NAME = 'local_grid'
- class bosdyn.client.command_line.ListLocalGridTypesCommand(subparsers, command_dict)[source]
Bases:
CommandList local grid sources.
- NAME = 'types'
- class bosdyn.client.command_line.GetLocalGridsCommand(subparsers, command_dict)[source]
Bases:
CommandGet local grids from the robot.
- NAME = 'get'
- class bosdyn.client.command_line.DataAcquisitionCommand(subparsers, command_dict)[source]
Bases:
SubcommandsAcquire data from the robot and add it in the data buffer with the metadata, or request status.
- NAME = 'acquire'
- class bosdyn.client.command_line.DataAcquisitionRequestCommand(subparsers, command_dict)[source]
Bases:
CommandCapture and save images or metadata specified in the command line arguments.
- NAME = 'request'
- class bosdyn.client.command_line.DataAcquisitionServiceCommand(subparsers, command_dict)[source]
Bases:
CommandGet list of different data acquisition capabilities.
- NAME = 'info'
- class bosdyn.client.command_line.DataAcquisitionStatusCommand(subparsers, command_dict)[source]
Bases:
CommandGet status of an acquisition request based on the request id.
- NAME = 'status'
- class bosdyn.client.command_line.DataAcquisitionGetLiveDataCommand(subparsers, command_dict)[source]
Bases:
CommandCall GetLiveData based on service name.
- NAME = 'live'
- class bosdyn.client.command_line.HostComputerIPCommand(subparsers, command_dict)[source]
Bases:
CommandDetermine a computer’s IP address.
- NAME = 'self-ip'
- NEED_AUTHENTICATION = False
- class bosdyn.client.command_line.PowerCommand(subparsers, command_dict)[source]
Bases:
SubcommandsSend power commands to the robot.
- NAME = 'power'
- class bosdyn.client.command_line.KeepaliveCommand(subparsers, command_dict)[source]
Bases:
SubcommandsSend keepalive commands to the robot.
- NAME = 'keepalive'
- bosdyn.client.command_line.lease_details(leases)[source]
Returns list of <resource_name>:<sequence>, …N.
- class bosdyn.client.command_line.KeepaliveGetStatusCommand(subparsers, command_dict)[source]
Bases:
CommandGet status of keepalive service.
- NAME = 'status'
- class bosdyn.client.command_line.KeepaliveRemovePoliciesCommand(subparsers, command_dict)[source]
Bases:
CommandRemove keepalive policies.
- NAME = 'remove'
- class bosdyn.client.command_line.PowerRobotCommand(subparsers, command_dict)[source]
Bases:
CommandControl the power of the entire robot.
- NAME = 'robot'
- class bosdyn.client.command_line.PowerPayloadsCommand(subparsers, command_dict)[source]
Bases:
CommandControl the power of robot payloads.
- NAME = 'payload'