A proof-of-concept PID controller node built as my Lunabotics onboarding project. Demonstrates ROS 2 publishers, subscribers, and basic control logic.
- Subscribes to
/goal(geometry_msgs/PoseStamped) - Subscribes to
/odom(nav_msgs/Odometry) - Publishes velocity commands on
/cmd_vel - Computes proportional–integral–derivative control on the x-axis
- Writing and understanding ROS 2 Python nodes
- Understanding PID control and feedback loops
- Using publishers, subscribers, and callbacks in rclpy
python3 pid_controller.py