Skip to content
On this page

Config

Overview

This command allows to:

  • Check the connection settings to the robots,
  • Display the robot structure (i.e. aliases and motors) and then perform a connection test to all motors.
shell
poppy config [-MDsh] [-H hostname] [-P port]

Options

 desccriptionvaluedefaultmandatory
-M/--structureDisplay the robot structure (aliases and motors) and check connection to each motorsbooleanfalseno
-D/--detailsDisplay details about motorsbooleanfalseno
-s/--saveSave connection settings in .poppyrc filebooleanfalseno
-H/--hostSet the Poppy hostname/IPstringpoppy.localno
-p/--portSet the REST API port on Poppyinteger8080no
-h/--helpDisplay help about this commandbooleanfalseno

Examples

  • Typing
shell
poppy config -M

Will discover the robot and display an aliases/motors tree as shown on the screenshot below:

>> Connection to Poppy (hostname/ip: poppy.local)
  REST API (port 8080):  OK
>> Structure:
  Poppy
   ├─ base
   │  ├─ m1
   │  ├─ m2
   │  └─ m3
   └─ tip
      ├─ m4
      ├─ m5
      └─ m6
  • Typing
shell
poppy config -MD

Will display information about motors.

>> Connection to Poppy (hostname/ip: poppy.local)
  REST API (port 8080):  OK
>> Structure: 
  Poppy
   ├─ base
   │  ├─ m1
   │  │  ├─ id: 1
   │  │  ├─ type: XL-320
   │  │  └─ angle: [-90,90]
   │  ├─ m2
   │  │  ├─ id: 2
   │  │  ├─ type: XL-320
   │  │  └─ angle: [90,-125]
   │  └─ m3
   │     ├─ id: 3
   │     ├─ type: XL-320
   │     └─ angle: [90,-90]
   └─ tip
      ├─ m4
      │  ├─ id: 4
      │  ├─ type: XL-320
      │  └─ angle: [-90,90]
      ├─ m5
      │  ├─ id: 5
      │  ├─ type: XL-320
      │  └─ angle: [90,-90]
      └─ m6
         ├─ id: 6
         ├─ type: XL-320
         └─ angle: [90,-90]
  • Typing
shell
poppy config -s -H poppy1.local -p 8081

Will check robot located at 'poppy1.local' and with REST API configured on port 8081 and save, in case of success, these connection settings in file named .poppyrc.

Released under the MIT License.