• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bdaiinstitute / spot_ros2 / 7820151579
40%

Build:
DEFAULT BRANCH: main
Ran 07 Feb 2024 07:35PM UTC
Jobs 1
Files 40
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

07 Feb 2024 07:29PM UTC coverage: 39.703%. Remained the same
7820151579

push

github

web-flow
[SW-679] Config. file is not used to get hostname, username, or password when running the driver (#259)

## Changes Overview
This addresses [this issue](https://github.com/bdaiinstitute/spot_ros2/issues/247) of not being able to connect to Spot from `spot_driver.launch.py` without setting environment variables. Now, the spot driver can be launched with only a configuration file yaml (`config_file`) if the user chooses. 

The implementation parses the `config_file` yaml within the launchfile to determine if `username`,  `password`, and `hostname` are set there as ROS parameters. If both environment variables and `config_file` parameters are set, then the environment variables take priority (similar to the `get_from_env_and_fall_back_to_param` logic in `spot_ros2.py`).  It also assumes a yaml structure for `config_file` (if used) of the following:
```
/**:
    ros__parameters:
        username: ...
        password: ...
        hostname: xxx.xxx.xxx.xxx
        .....
```
and also assumes environment variables (if used) are set as `BOSDYN_CLIENT_USERNAME`, `BOSDYN_CLIENT_PASSWORD,` and `SPOT_IP`. 


## Testing Done
* If an environment variable (any of `BOSDYN_CLIENT_USERNAME`, `BOSDYN_CLIENT_PASSWORD,` `SPOT_IP`) is set, this will be used for the login attempt. 
* If any environment variable is not set, the `config_file` yaml will be searched to see if the appropriate login information exists there. 
* If a parameter of username/password/hostname is set both by environment variable and by `config_file`, the value from the environment variable will be used for the login attempt. 
* If any one of username, password, and hostname is not set by anything, an exception will be thrown as login will not be possible and the driver will not launch. 
* If the `config_file` yaml passed in is malformed and cannot be parsed, a YAMLError is thrown. 

Verified that login is possible with a config file on-robot too. 

## Other comments
Currently the only use for these va... (continued)

182 of 483 branches covered (0.0%)

Branch coverage included in aggregate %.

1474 of 3688 relevant lines covered (39.97%)

0.4 hits per line

Jobs
ID Job ID Ran Files Coverage
1 unittests - 7820151579.1 07 Feb 2024 07:35PM UTC 0
39.59
GitHub Action Run
Source Files on build 7820151579
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #7820151579
  • c2c2010a on github
  • Prev Build on main (#7802845154)
  • Next Build on main (#7820320995)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc