ROS 2 bag record split: --max-bag-size vs --max-bag-duration
ros2 bag record splits at whichever of -b or -d is hit first: size wins when -b divided by your data rate is shorter than -d, otherwise duration.
ros2 bag record splits at whichever of -b or -d is hit first: size wins when -b divided by your data rate is shorter than -d, otherwise duration.
Only measured numbers under hard memory caps: 7B local LLM 6.3GiB, Nav2 build 8.1GiB, MoveIt 2 8.7GiB (fails at 8GB), 14B LLM 13.6GiB. Where 16GB and 32GB split.
Three runs of Docker Desktop 4.73 on an 8GB Intel MacBook: three idle containers show 85MiB in docker stats but add 320 to 472MiB on the Mac, and memory freed inside the VM stays on the Mac side for minutes.
In ROS 2 Python use read_points_numpy(msg, field_names=['x','y','z']); skip_nans drops NaN rows only when is_dense is False, so filter with np.isfinite.
27 Ollama runs of Qwen2.5 3B/7B/14B under 4, 8 and 16GB RAM caps, CPU only: 8GB runs up to 7B (peak 6.2GiB); 14B needed 13.6GiB at 16GB. Speeds 5.4, 2.6 and 1.3 tokens/s.
X = (u - cx)*Z/fx, Y = (v - cy)*Z/fy with fx=K[0], cx=K[2], fy=K[4], cy=K[5] and Z in metres (16UC1 depth is mm); depth is Z, not ray length.
rclpy Time() is a 0 ns SYSTEM_TIME value while get_clock().now() and Time.from_msg() are ROS_TIME; create times with the node clock's clock_type.
A default colcon build of MoveIt 2 (Jazzy, 41 packages) was killed at an 8GB cap and peaked at 8.7GiB at 16GB; a sequential build peaked at 2.4GiB and finished at 4GB.
rclpy rate.sleep() waits for a timer callback only an executor runs: spin in another thread or use MultiThreadedExecutor(num_threads=2).
Split Foo[] into uint64[] + uint32[]: rclpy publish() of 10,000 elements dropped from about 10 ms to 0.25 ms on ROS 2 Jazzy.
ROS 2 troubleshooting guide · How these articles are made