AI-Assisted Learning Prompts: Intermediate Tier
This document provides curated prompts for AI assistants to help reinforce learning from the Intermediate tier lessons on creating ROS 2 Python nodes.
How to Use These Prompts
- Copy a prompt matching your learning goal
- Paste into your AI assistant (Claude, ChatGPT, etc.)
- Include your specific code or error messages when debugging
- Verify responses against ROS 2 documentation
I1: Nodes, Topics, Services, and Actions
Conceptual Understanding
Publisher/Subscriber Deep Dive
I'm learning about ROS 2 publishers and subscribers. Can you explain:
1. What happens internally when I call publisher.publish()?
2. How does the message get from publisher to subscriber?
3. What role does the queue size (depth) play?
4. When would messages be dropped or lost?