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

bdaiinstitute / spot_ros2 / 11164121296
52%

Build:
DEFAULT BRANCH: main
Ran 03 Oct 2024 02:55PM UTC
Jobs 2
Files 55
Run time 1min
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

03 Oct 2024 02:38PM UTC coverage: 51.099%. Remained the same
11164121296

push

github

web-flow
[SW-1391] controller that lets you specify position, velocity, and load at the same time  (#493)

## Change Overview

Adds a new package `spot_controllers` that can contain custom ros2 controllers for spot. 

Adds a custom controller `forward_state_controller`. This uses the same base class that the built-in `forward_command_controller` and `multi_interface_forward_command_controller` use. The main difference is that this controller accepts a list of joints and a list of interfaces to forward commands over.  This controller is then set up with `spot_ros2_control` so that you can forward a list of position, velocity, and load commands to the low level API at the same time. 

To launch with this controller add the launch argument `robot_controller:=forward_state_controller`

To send commands, publish to the `/<robot name>/forward_state_controller/commands` topic, eg
 
`ros2 topic pub /forward_state_controller/commands std_msgs/msg/Float64MultiArray "{data: [<list of desired position> <list of desired velocity> <list of desired load>]}"
`

Additionally, if joint gains are ever added to the command interface, they could be forwarded via this same type of controller by just inputting a different set of parameters

## Testing Done

- mock mode / forward position controller
-  mock mode / forward state controller
-  robot mode / forward position controller
- robot mode / forward state controller
all are loaded successfully!
- [x] mock mode correctly forwards a dummy list of position/velocity/effort into the joint states
- [x] examples running regular forward position commands still work

1929 of 3775 relevant lines covered (51.1%)

27.7 hits per line

Jobs
ID Job ID Ran Files Coverage
1 unittests-cpp - 11164121296.1 03 Oct 2024 02:55PM UTC 0
70.26
GitHub Action Run
2 unittests-python - 11164121296.2 03 Oct 2024 02:55PM UTC 0
40.16
GitHub Action Run
Source Files on build 11164121296
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #11164121296
  • e0d249c3 on github
  • Prev Build on main (#11163250865)
  • Next Build on main (#11222599518)
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