Skip to content
RIT-MDRCPublic

About

Main repository for catbot onboard software

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

6 stars

Watchers

2 watching

Forks

Latest commit

 

History

296 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MDRC LOGO

Catbot

Quadruped Hybrid Pneumatic-Electric Robot. Utilizes McKibben Muscles for bio-inpired locomotion.

Setup

Docker Dev Container

  • Install Docker
  • ctrl+shift+p -> Dev Containers: Reopen in Container

Set up the Python environment

Install uv and use the Catbot CLI. On the Raspberry Pi this keeps ROS Humble's system Python ABI while uv manages the project dependencies in a user-local environment.

npm install -g .
catbot setup

For development from the current checkout, use catbot setup -D and pass -D to later commands.

On the Pi, setup builds every ROS package under src/, including interfaces, Foundation, policy, supervisor and UI, into ~/.local/share/catbot/ros/install. For direct ros2 commands, source /opt/ros/humble/setup.bash and that install's setup.bash. See CLI setup for the XDG path override.

Local macOS ROS IntelliSense

For editor completion and basic type checking without opening the ROS dev container, install the optional IntelliSense-only dependency group:

uv sync --group ros-intellisense
uv run ty check

rclpy-intellisense and common-interfaces-intellisense are non-runtime approximations of rclpy and common messages such as std_msgs. Do not execute the ROS node against them; use the Jazzy devcontainer for colcon build, custom generated interfaces, integration tests, and runtime validation. In VS Code, select this checkout's .venv/bin/python interpreter after syncing the group. Install the workspace-recommended ty and Ruff extensions when prompted. This workspace disables Pylance and uses ty for completion, navigation, and type diagnostics; the Microsoft Python extension remains enabled for interpreter and debugger integration.

The ty source roots in pyproject.toml cover the ROS package directories and Foundation's directly executed samples. The editor and CLI use these shared paths without PYTHONPATH or --extra-search-path overrides.

Run script

Build the packages:

  • colcon build To run the UI package:
  • ros2 run ui ui

The UI publishes body-velocity commands to the policy. Its live ROS parameters control command magnitude without changing the foundation motor-safety profile:

ros2 param set /ui_node speed_gain 0.5
ros2 param set /ui_node forward_speed_mps 0.2
ros2 param set /ui_node lateral_speed_mps 0.2
ros2 param set /ui_node command_acceleration_mps2 1.0
ros2 param set /ui_node fast_speed_multiplier 3.0

All values must be finite and positive. speed_gain scales both axes; the forward and lateral parameters set their base speeds in meters per second. command_acceleration_mps2 limits the rate at which the two-dimensional body velocity changes; stop commands remain immediate for safety. Changes apply to the next UI command. These four primary motion values can also be edited in the running UI's Motion settings panel.

The Foundation node exposes sparse body position control and immediate motor I/O. The RPi Supervisor owns modes, link decisions, action gating, Pi health, and prescripted actions; Orin Supervisor services own policy and managed jobs. See the foundation body-control documentation for message formats and publish examples.

The policy node loads exported trained actors, accepts named feedback on /policy/feedback, and publishes actuator targets. Its documentation covers policy export, optional runtime dependencies, building, topic remapping, and the provisional joint mapping.

Build and source the workspace, then start the Pi and Orin service hosts:

# Pi
ros2 launch catbot_supervisor rpi.launch.py network_interface:=eth0
# Orin (in its own sourced terminal)
ros2 launch catbot_supervisor orin.launch.py policy_bundle:=/absolute/path/to/bundle

Use the supervisor's explicit startup script and run service to enable motion. See its operator/API guide and Foundation audit.

To download and prepare the latest W&B training checkpoint automatically:

cd src/catbot_policy
uv run pull_policy.py

The Orin launch selects locally prepared policy artifacts; see the policy setup instructions for W&B login, run selection, and ROS setup.

Install dependencies

Install nodejs dependencies and catbot-cli

Run the following command in the terminal:

npm install -g .
catbot setup

For more command information goto catbot-cli

Contributing

Before contributing

Make sure to read the documentation in the wiki. Questions with the documentation are welcomed in the issues tab.

Shared simulation rollout worker

The rollout worker is the external/catbot_sim_rollout Git submodule, shared with catbot-orin. Initialize the pinned checkout with:

git submodule update --init external/catbot_sim_rollout

It has its own uv project and pinned physics dependency. Only on a machine that runs simulation, use uv sync --locked --project external/catbot_sim_rollout. The Pi's policy/foundation environment does not need those dependencies. See the worker README for its CLI/protocol and catbot-orin's docs/SIMULATION.md for distributed launch instructions.

About

Main repository for catbot onboard software

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

6 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages