Hi everyone!
I’m working on MowgliNext, an open-source robotic lawn mower project based on ROS 2, ArduRover and MAVROS.
I’m currently investigating how to improve wheel odometry using feedback from the motors or ESCs.
Our architecture is:
Motors / ESCs → Pixhawk (ArduRover) → MAVLink → MAVROS → ROS 2
The idea is to retrieve motor rotation information from each wheel through the flight controller, allowing ROS 2 to calculate wheel odometry without requiring a separate direct connection between the ESCs and the companion computer.
Ideally, we would like to obtain:
- Cumulative motor position (total revolutions or encoder counts), preferably including multiple rotations.
- Individual wheel rotational speed (RPM).
- A timestamp associated with the measurements, if available.
Cumulative motor position would be particularly useful because integrating RPM over time can introduce errors due to communication delays, variable update rates or missing messages.
We are investigating different ESC technologies, including VESC and potentially other ESCs communicating through CAN or DroneCAN.
My questions are:
- Does ArduRover already provide a mechanism to retrieve motor position or encoder feedback from compatible ESCs?
- Is there an existing MAVLink message that could transport cumulative motor rotation or encoder counts from ArduRover to MAVROS?
- Could existing ESC telemetry mechanisms be extended to expose this information?
- If this functionality is not currently supported, what would be the recommended approach to implement it within the ArduPilot ecosystem?
Our long-term goal is to develop a hardware-independent solution that could work with different ESCs and motor feedback technologies.
I’m particularly interested in knowing whether there is already an existing mechanism that we could reuse before considering a new implementation.
Any suggestions or pointers would be greatly appreciated!
Thanks!