惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
SegmentFault 最新的问题
A
About on SuperTechFans
NISL@THU
NISL@THU
V
Visual Studio Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog RSS Feed
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
美团技术团队
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Google DeepMind News
Google DeepMind News
小众软件
小众软件
博客园 - Franky
罗磊的独立博客
The Cloudflare Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
酷 壳 – CoolShell
酷 壳 – CoolShell
量子位
Hugging Face - Blog
Hugging Face - Blog
云风的 BLOG
云风的 BLOG
MongoDB | Blog
MongoDB | Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog
The GitHub Blog
The GitHub Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Proofpoint News Feed
有赞技术团队
有赞技术团队
Hacker News - Newest:
Hacker News - Newest: "LLM"
Cyberwarzone
Cyberwarzone
C
CXSECURITY Database RSS Feed - CXSecurity.com
Project Zero
Project Zero
Security Latest
Security Latest
L
Lohrmann on Cybersecurity
AWS News Blog
AWS News Blog
The Hacker News
The Hacker News
I
Intezer
J
Java Code Geeks
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
P
Privacy International News Feed
月光博客
月光博客
A
Arctic Wolf
Apple Machine Learning Research
Apple Machine Learning Research
D
Darknet – Hacking Tools, Hacker News & Cyber Security
博客园_首页
WordPress大学
WordPress大学
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Tor Project blog
博客园 - 三生石上(FineUI控件)
The Last Watchdog
The Last Watchdog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店 GitHub - EdoardoBambini/Agent-Armor-Iaga: AI agents are getting tool access — shell, file system, databases, APIs, secrets. But **nobody is governing what they actually do with it**. Frameworks like LangChain, CrewAI, AutoGen, and Claude Code give agents the power to execute. Agent Armor gives you the power to control, audit, and approve every single action before it happens. HN Vibes — Week 15, Apr 7–13 2026 GitHub - chojs23/ec: Easy terminal-native 3-way git mergetool vim-like workflow GitHub - SethPyle376/hiraeth: Local AWS emulator focused on fast integration testing, with SQS support, SQLite-backed state, and a debug-friendly web UI. GitHub - JakOb-dotcom/cloud-sandbox-security-analysis: Technical analysis and Proof of Concept (PoC) regarding environment variable exfiltration in containerized cloud sandboxes via side-channel data leaks. Springboards - Flint Alpha Show HN: A simpler coding agent harness GitHub - audiodude/sudomake-friends GitHub - 256thFission/mini-mythos: OSS clone of Anthropic’s Mythos harness to locate C/C++ memory vulnerabilities Show HN: OpenParallax: OS-level privilege separation for AI agent execution Hacker News Sorted - Chrome 应用商店 Show HN: How to Install Docker on Ubuntu 24.04 LTS: Complete 2026 Guide GitHub - himanshudongre/smriti GitHub - sverrirsig/claude-control: macOS desktop dashboard for monitoring and managing multiple Claude Code sessions GitHub - ory/dockertest: Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work. Chiral - Chrome 应用商店 Show HN: Two Claudes collaborating through shared memory on a $100 mini-PC GitHub - pmichaillat/latex-cv: Minimalist LaTeX template for academic CVs GitHub - oguzbilgic/posse: A web UI for Anthropic Managed Agents. GitHub - sshiraz/depsly: Dependency risk analysis tool for npm packages ABI Add safari/agent-harness — Safari browser automation via safari-mcp by achiya-automation · Pull Request #212 · HKUDS/CLI-Anything GitHub - Halfblood-Prince/trustcheck: Verify PyPI package attestations and improve Python supply-chain security GitHub - oguzbilgic/kern-ai: Agents that do the work and show it. GitHub - bruits/satteri: High-performance Markdown and MDX processing for the JavaScript ecosystem GitHub - tylergibbs1/feedstock: High-performance web crawler and scraper for TypeScript, powered by Bun and Playwright GitHub - Grimm67123/grimmbot: The self-improving sandboxed and open-source AI agent. With persistent memory and scheduling. GitHub - whitevanillaskies/whitebloom: Local whiteboard that blooms. GitHub - hwdsl2/docker-whisper: Docker image for a self-hosted Whisper speech-to-text server with speaker diarization and OpenAI-compatible transcription and translation APIs. Powered by faster-whisper. Supports all Whisper models, NVIDIA GPU (CUDA) acceleration, JSON/SRT/VTT output, SSE streaming, offline mode, and multi-arch (amd64, arm64). GitHub - yisding/reviewwiggum GitHub - MarwanAlsoltany/serrors: Structured errors for Go: sentinel hierarchies, typed data, custom formatting, and slog integration. GitHub - soatok/age-php GitHub - Luthiraa/markitme GitHub - stagas/rtdiff: realtime git diff gui and AI-assisted commits GitHub - tombedor/excalicharts GitHub - wh1le/excalidraw-edit: Open and edit .excalidraw files from the terminal. Offline, auto-saves to disk. MalExt Sentry - Malicious Extension Scanner - Chrome 应用商店 GitHub - syi0808/asciianimesvg: Generate animated ASCII art SVGs from text. CLI, Rust library, WASM, and web editor. GitHub - zaina-ml/ml_forge: A visual-based graph node editor for training computer vision models. GitHub - anakin87/llm-rl-environments-lil-course: 🌱 A little course on Reinforcement Learning Environments for evaluating and training Language Models GitHub - takaakit/superpowers-uml: Superpowers-UML modifies Superpowers to ensure a software development workflow in which AI agents design through UML modeling. AdriByte Studio - Sviluppo Web e Soluzioni Digitali GitHub - chouligi/angel-copilot: Your personalized Angel Investment Advisor Show HN: MoodSense AI (ML and FastAPI and Gradio, Deployed on Hugging Face) Moodsense Ai - a Hugging Face Space by aman179102 GitHub - agenteractai/lodmem: Level Of Detail Context Management for Agents GitHub - ostefani/subnetlens: A fast, concurrent network scanner with a TUI and plain-text CLI, built in Go. It discovers live hosts on your network, scans their open ports, resolves hostnames, and fingerprints operating systems—delivered. Cyber Pulse: Agentic Intel - Apps on Google Play Whisper API: Self-Hostable Speech to Text Transcription The Agent-Web Protocol Stack: A Research Thesis GitHub - msmarkgu/RelayFreeLLM: A restful API designed to route user prompts to various AI model providers. Show HN: Provepy – A Python decorator that proves your code using Lean and LLMs Show HN: Pardonned.com – A searchable database of US Pardons GitHub - patrickdappollonio/dux: Dux is a terminal UI that lets you run multiple AI coding agents side by side, each in its own git worktree, with full companion terminals, macros, commit generation, and a command palette that knows more tricks than you do. kMC Crystal Simulator Show HN: HyperFlow – A self-improving agent framework built on LangGraph GitHub - stef41/vibescore: 🎵 Grade your vibe-coded project. One command, instant letter grade across security, quality, dependencies, and testing. GitHub - stef41/lmscan: 🔍 Detect AI-generated text and fingerprint which LLM wrote it. Open-source GPTZero alternative. Zero dependencies, works offline. imgur.com GitHub - visionscaper/collabmem: Enabling long-term collaboration with Agentic AI - building up episodic and world model memory over time with in-context awareness 在 Steam 上购买 FriedrichAI: Offline AI 立省 10% GitHub - atripati/ark: AI Runtime Kernel — a context operating system for AI agents. Eliminates tool bloat, loads only what’s needed, and gives LLMs their reasoning space back. GitHub - nowork-studio/toprank: Open-source Claude Code skills for SEO, SEM, Google Ads GitHub - tacomanator/sash: Lightweight macOS menu bar app for reliably cycling through windows of the current application. Appents | Social Media Management for Product-First Teams GitHub - pnhoang/youtube-spam-blocker: Automatically detects and hides spam messages in YouTube Live chat. Set rate limits, keyword filters, and block repeat offenders. GitHub - decisionnode/DecisionNode: CLI + Local MCP - A shared structured memory store across Claude Code, Cursor, Windsurf, Antigravity, and every MCP client. Semantically queryable. GitHub - AvaCodeSolutions/django-email-learning: An open source Django app for creating email-based learning platforms with IMAP integration and React frontend components. The $100K Gap in Kubernetes Security Tooling Function Calling Harness: From 6.75% to 100%
GitHub - SphericalCowww/CubicDoggo: Development for a 12 Degrees-of-Freedom 4-Legged Robot
SphericalCow · 2026-05-19 · via Hacker News: Show HN

Cubic Doggo: Homemade 12-DOF 4-Legged Robot Recipe

Building from scratch a walking robot dog with all commercial/3D-printed parts and ROS2 Jazzy!

Demos: derived from (GitHub/Reddit), upgrade in center of mass (Reddit), upgrade in walk gait (Reddit), incorporate turning in walk gait (Reddit)

Ingredients

3D printing

The 3D printer model VOXELAB Aquila X2 is used, but as long as it prints PLA, it's good. All the FreeCAD files can be found here: link.

Hardware requirements

device models count specification
servo motor DYNAMIXEL XL430-W250-T 12 Max stall torque: 1.5 N*m (at 12.0V, 1.4A, 1.071 Nm/A). Need also corresponding signal wires of various lengths
USB communication interface DYNAMIXEL U2D2 1 Can control 12 servo in daisy chain if properly powered
communication/power hub DYNAMIXEL U2D2 power hub board 2 Operating voltage 3.5-24V withg a maximum current of 10A
onboard computer Raspberry Pi 5 1 For running just IK, a small RAM is sufficient; Pi 4 could be good enough as long as ROS2 Jazzy can be installed
DC-DC step-down convertor Hailege 24V/12V to 5V/5A 1 USB Port port to RaspPi, DC 5.5mm x 2.5mm Male to battery
battery ZYGY 11.1V 2000mAh 2 They already include protection. Need Charger. Need adapters for: T-plug => XT60 Male => DC 5.5mm x 2.5mm Male
bearings M3 bearing+spacer, threaded rod, rod-end bearing 8, 4, 4, 4 rod length of 60mm to match the leg length; other dimensions can be accomodated by modifying the CAD
bolts and nuts M3 screws are used throughout, except where required to accommodate the servos and electronic boards; use locknuts

Other than the M3 screw, one specific requirement is the 1.2cm M2 screw (bag on the left in the photo) for the servo, which is not provided by the DYNAMIXEL package (bag on the right). Any shorter, the connection is too fragile, and any longer, the servo will be stuck from the inside. The M2.5 screws are generally provided by the DYNAMIXEL package, but other electrical boards may need them too, such as the RaspPi.

Optional:

device models count specification
power supply SMPS 1 12V/5A for testing without batteries
capacitor 1000uF 2 rating 25V or higher

Special soldering requirements

  • Solder two MOLEX 51065-0300 cables together to form a Y-wire, otherwise U2D2 doesn't have enough connectors
  • Optional: connect a wire between the 2 U2D2 power hubs such that they have shared ground. Then solder a capacitor at each end to the power rail. Careful about all the connection directions; otherwise, the whole power system can be severely damaged

Power system

  • Daisy chain no more than 3 servos to avoid delay
  • Powering the hubs using their SMPS DC jacks. Then use the molex/screw terminal as an output to power the RaspPi via a ~12V-to-5V DC-DC converter.

Tools used

There are quite a few screws in difficult locations with the current design, which may require several tools for full assembly and repair in timely manner. The photo shows the tool used for this project.

Running a Single Servo on ROS2

Setting the servo IDs

Connecting servo to U2D2 according to YouTube:

Use the following App DYNAMIXEL Wizard 2.0 to change the servo ID (default 1) to, say, ID 10. Note that if any of the servos have the same ID, they will NOT show up in the scan. The servos also all initially come with an ID of 1, so they must be connected one by one to U2D2 to change their IDs accordingly.

connect U2D2 to computer => open DYNAMIXEL Wizard 2.0
# Options 
## Select protocol to scan => Protocol 2.0 (only)
## Select port to scan => which ever port is connected
## Select baudrate to scan => 57600 bps and 2000000bpt => OK
## Select ID range to scan => End => 50
## OK
# Scan
# Item 
## (Address 7) ID => ID 11 (on the right) => Save (may need to scroll down) 
## (Address 8) Baud Rate (Bus) => 2Mbps (on the right) => Save (may need to scroll down) 
## (Address 9) Return Delay Time => 0 (on the right) => Save (may need to scroll down) 
## (Address 68) Status Return Level => 2 (on the right) => Save (may need to scroll down) 

Can also test out the servo:

# LED (top right toggle)
# Torque (top right toggle) => set the value for motion (can select Velocity/Position mode)

For the 12 servos, the IDs are set as 11, 12, 13, 21, 22, 23, 31, 32, 33, 41, 42, and 43.

Installing the dynamixel-sdk and dynamixel-workbench

Following github to install ROS. To install drivers for Dynamixel,

sudo apt install ros-jazzy-dynamixel-sdk* ros-jazzy-dynamixel-hardware* ros-jazzy-dynamixel-workbench*
dpkg -l | grep dynamixel
ros2 pkg list | grep dynamixel

Clone this repository,

git clone https://github.com/SphericalCowww/CubicDoggo.git
cd CubicDoggo

Then copy src directly under CubicDoggo/src/my_toolbox_dynamixel_workbench. And for every .cpp file, change the following line:

#include <DynamixelWorkbench.h>

To,

#include <cstdlib>
#include "dynamixel_workbench_toolbox/dynamixel_workbench.h"

Then connect U2D2 to the RaspPi USB port. To check if ROS2 sees the servos:

cd CubicDoggo
colcon build
source install/setup.bash
sudo dmesg | tail -n 20
# look for:
## usb 2-2: Detected FT232H
## usb 2-2: FTDI USB Serial Device converter now attached to ttyUSB0
ls -l /dev/ttyUSB*
sudo chmod a+rw /dev/ttyUSB0                   # required everytime after reconnection
ros2 run my_toolbox_dynamixel_workbench model_scan /dev/ttyUSB0 2000000
ros2 run my_toolbox_dynamixel_workbench position /dev/ttyUSB0 2000000 11 0.5

Check ROS_leggedRobot_testBed GitHub, specifically firmware code for more single servo application. However, do NOT run it on a connected robot.

Setting the latency

Update USB port latency to 1 ms. Note that this USB signal is delicate; use the shortest, highest-quality USB cable possible.:

lsusb
# look for: Bus 002 Device 003: ID 0403:6014 Future Technology Devices International, Ltd FT232H Single HS USB-UART/FIFO IC
sudo vim /etc/udev/rules.d/99-dynamixel-latency.rules
---------- add: 
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6014", ATTR{device/latency_timer}="1", SYMLINK+="ttyU2D2", MODE="0666", GROUP="dialout"
# ATTR{device/latency_timer}="1": Sets the 1ms latency (The "Sync Read" fix).
# SYMLINK+="ttyU2D2": (Optional but helpful) This creates a static name for your device. You can now use /dev/ttyU2D2 in your code instead of /dev/ttyUSB0, so it won't break if you plug in another USB device.
# MODE="0666": Allows your ROS node to access the port without needing sudo.
---------- 
sudo vim /etc/udev/rules.d/99-ftdi.rules
---------- add: 
SUBSYSTEM=="usb", ATTR{idVendor}=="0403", ATTR{idProduct}==6014, MODE="0666", GROUP="dialout"
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6014", MODE="0666", GROUP="dialout"
# This gives the correct permission to the USB port in question, otherwise, whenever reconnected, needs to do: sudo chmod a+rw /dev/ttyUSB0
---------- 
sudo udevadm control --reload-rules
sudo udevadm trigger
ls -l /dev/ttyU2D2
# if doesn't exist, do: sudo apt remove brltty
cat /sys/class/tty/ttyUSB0/device/latency_timer
# which should show 1 for 1 ms

Update to run the firmware with proper permissions to avoid latency:

# without sudo, we will see the following WARNING in ros2 launch:
## [ros2_control_node-2] [WARN] [1766867979.090889912] [controller_manager]: Could not enable FIFO RT scheduling policy: with error number <1> (Operation not permitted). See [https://control.ros.org/master/doc/ros2_control/controller_manager/doc/userdoc.html] for details on enabling real-time scheduling.
# with sudo, we can do the following:
## sudo bash -c "source /opt/ros/jazzy/setup.bash; source install/setup.bash; ros2 launch my_robot_bringup my_robot.with_commander.launch.py"
# however, eventually we want to run without sudo in case it messes up with other permissions:
sudo addgroup realtime
sudo usermod -a -G realtime $USER
sudo vim /etc/security/limits.d/realtime.conf:
----------  add:
@realtime soft rtprio 99
@realtime soft priority 99
@realtime soft memlock unlimited
@realtime hard rtprio 99
@realtime hard priority 99
@realtime hard memlock unlimited
---------- 
sudo reboot

Running a single leg on ROS2

Assembly and Launching URDF

The double-bearing design will need a spacer in between. A long M3 screw is used to join the 2 bearing and connect with a locknut on the other side. Also, make sure the linkage rods are of the same length after installing the rod bearings. Finally, remember to twist the servo cables to reduce the signal interference from the power lines.

Run the following to view the moving parts:

cd CubicDoggo
colcon build
source install/setup.bash
ros2 launch my_robot_description my_robot.rviz.launch.xacro.py
# if no config loaded
## Fixed Frame: base_link
## Add: RobotModel
## RobotModel: Description Topic: /robot_description

Video demo

Launching MoveIt2 demo:

cd CubicDoggo
colcon build
source install/setup.bash
ros2 launch my_robot_moveit_config demo.launch.py
# ignore: [move_group-3] [ERROR] [1758361830.007872451] [move_group.moveit.moveit.ros.occupancy_map_monitor]: No 3D sensor plugin(s) defined for octomap updates
# ignore: [rviz2-4] [ERROR] [1758361834.128908606] [moveit_143394722.moveit.ros.motion_planning_frame]: Action server: /recognize_objects not available
# MotionPlanning:
## Planning Group: leg1
## Goal State: pose1
## Plan
## Execute

Note that to move the motion wheel in rViz:

# toggle: Approx IK Solutions
# toggle if needed: MotionPlanning => Planned Path => Loop Animation
# toggle if needed: Use Cartesian Path 

Testing the ros2_control and MoveIt

Under CubicDoggo/src/my_robot_description/urdf/my_robot.ros2_control.xacro,

  • use <plugin>mock_components/GenericSystem</plugin> if just want rViz
  • use <plugin>ma_robot_namespace::HardwareInterfaceU2D2_my_robot</plugin> if want to control hardware

Then run:

cd CubicDoggo
colcon build
source install/setup.bash
ros2 launch my_robot_bringup my_robot.with_lifecycle.launch.py
# on another terminal
ros2 topic pub -1 /leg1_set_named example_interfaces/msg/String "{data: "pose1"}"
ros2 topic pub -1 /leg1_set_joint example_interfaces/msg/Float64MultiArray "{data: [3.14, 3.14, 3.14]}"
ros2 topic pub -1 /leg1_set_pose my_robot_interface/msg/MyRobotLeg1PoseTarget "{x: -0.092, y: 0.053, z: 0.135, use_cartesian_path: false}" 
ros2 service call /leg1_walk_toggle std_srvs/srv/SetBool "{data: true}"     # IK very easy to fail
ros2 service call /leg1_walk_toggle std_srvs/srv/SetBool "{data: false}"
ros2 lifecycle set /my_robot_lifecycle deactivate
ros2 lifecycle set /my_robot_lifecycle shutdown

Launching with launch file:

cd CubicDoggo
colcon build
source install/setup.bash
ros2 launch my_robot_bringup my_robot.launch.py
# NOTE: Sometimes it takes a second try to have everything registered
# Add => MotionPlanning
## Context => Planning Library => ompl
## Planning => Goal State: pose1 => Plan => Execute

Running full robot

Assembly and Launching URDF

Run the following to view the moving parts:

cd CubicDoggo
colcon build
source install/setup.bash
ros2 launch my_robot_description cubic_doggo.rviz.launch.xacro.py

Notice that the placement of the first servo is different between the front and back legs.

Launching with commands

Under: CubicDoggo/src/my_robot_description/urdf/cubic_doggo.ros2_control.xacro

  • use <plugin>mock_components/GenericSystem</plugin> if just want rViz
  • use <<plugin>cubic_doggo_namespace/HardwareInterfaceU2D2_cubic_doggo</plugin> if want to control hardware

Under: CubicDoggo/src/my_robot_bringup/launch/cubic_doggo.with_lifecycle.launch.py

  • comment out rviz_node if don't want rViz to show
  • comment out joy_driver_node and joy_controller_node if don't want the joystick controller
  • comment out peripheral_node if don't want warning from low power

Start the robot (skip launching rviz_node, joy_driver_node, or joy_controller_node if needed):

cd CubicDoggo
colcon build
source install/setup.bash
# comment in rvis node in CubicDoggo/src/my_robot_bringup/launch/cubic_doggo.with_lifecycle.launch.py
ros2 launch my_robot_bringup cubic_doggo.with_lifecycle.launch.py
# on another terminal
ros2 topic pub -1 /leg_set_named example_interfaces/msg/String "{data: "rest"}"
ros2 topic pub -1 /leg_set_named example_interfaces/msg/String "{data: "stand"}"
ros2 topic pub -1 /leg_set_named example_interfaces/msg/String "{data: "sit"}"
ros2 topic pub -1 /leg_set_named example_interfaces/msg/String "{data: "bow"}"
ros2 topic pub -1 /leg_set_joint example_interfaces/msg/Float64MultiArray "{data: [0, 3.14, 3.14, 3.54]}"
ros2 topic pub -1 /leg_set_pose my_robot_interface/msg/CubicDoggoLegPoseTarget "{leg_index: 0, x: -0.092, y: 0.053, z: 0.135}" 
ros2 service call /leg_walk_toggle std_srvs/srv/SetBool "{data: true}"
ros2 service call /leg_walk_toggle std_srvs/srv/SetBool "{data: false}"

Check out all the gait options under CubicDoggo/src/my_robot_commander/src/cubic_doggo_lifecycle.cpp:

# double maxVelScale = 1.0, maxAccScale = 1.0;
# int    waypoint_N     = 100;       // number of waypoints for each cycle,      default 100
# double waypoint_dt    = 0.01;      // second for each waypoint,                default 0.01
# double IK_bufferTime  = 0.10;      // time at end of cycle buffer for IK calc, default 0.10
# double swing_fraction = 0.50;      // creep < 0.25 < stable trot < 0.5 < trot
# double lift = 0.02, x_stride_max = 0.02, y_stride_max = 0.025, x_shift = 0.0, y_shift = 0.0;
# double x_stride = 0.0, y_stride = 0.0;

Testing the joystick controller:

ls /dev/input/js*
# output: /dev/input/js0
# otherwise do: sudo jstest /dev/input/js0
ros2 run joy joy_enumerate_devices
# if no device found
sudo usermod -aG input $USER
sudo reboot

cd CubicDoggo
colcon build
source install/setup.bash
ros2 run joy joy_node
# on another terminal
ros2 run my_robot_controller cubic_doggo_joy_control
# on yet another terminal
ros2 node info /cubic_doggo_joy_control    
ros2 topic info /joy --verbose
ros2 topic echo /joy

Testing low power alarm

For the low RaspPi power alarm, it's set by the rasp_pi_peripheral_node:

for d in /sys/class/hwmon/hwmon*; do echo -n "$d: "; cat "$d/name"; done   # find the correct path for power alarm
# update /home/cubicdoggo/Documents/CubicDoggo/src/my_robot_bringup/launch/cubic_doggo.with_lifecycle.launch.py
echo timer | sudo tee /sys/class/leds/ACT/trigger                          # trigger LED first
sudo chmod -R 777 /sys/class/leds/ACT/                                     # enable LED to indicate battery condition
# test the node if needed
ros2 run my_robot_commander rasp_pi_peripheral_node --ros-args -p power_path:=$(which ever power alarm path)
# create a fake alarm by
echo 1 > /tmp/fake_alarm

Launching at the start of RaspPi

chmod +x /home/cubicdoggo/Documents/CubicDoggo/start_robot.sh
sudo cp /home/cubicdoggo/Documents/CubicDoggo/robot_startup.service /etc/systemd/system/robot_startup.service
sudo chmod 644 /etc/systemd/system/robot_startup.service
sudo systemctl enable robot_startup.service                                # now will start at reboot
sudo systemctl daemon-reload                                               # reload whenever there is a change
# sudo systemctl restart robot_startup.service                             # restart, even if is rrunning
# sudo systemctl stop    robot_startup.service                             # stop right now, kill all relevant nodes
# sudo systemctl disable robot_startup.service                             # disable at reboot
# journalctl -u robot_startup.service -n 100 > start_robot_output.txt      # to check the output
# journalctl -u robot_startup.service -f

Next directions

  • Cubic Doggo MKII: strengthen the 2nd servo holding design (and perhaps to make the overall design easier to assemble), test with PLA+ (less likely to crack), test with STS-3215 (high torque, cheaper, but harder to develop), and use a Bluetooth controller
  • Cubic Doggo CHAMP: adapting IMU, and checking the compatibility with the CHAMP framework
  • Cubic Doggo RL: walk gait trained by the RL using whatever open software available

Acknowledgement

  • Thank my second brother, who is a mechanical engineer, for advising me to use the locknuts, all-directional bearings, and battery for RC boats, as well as buying me a bunch of screws for cheap.