Learning 2‑Wheel Odom + Distance/Optical Sensors — Need Guidance

I’m pretty new to coding odometry and sensors in C++, and I’m trying to learn how to use 2‑wheel odom with JAR Template.

I’m also new to the distance sensor and optical sensor, so I’m not sure what the basic control lines/functions are for reading them or how they’re normally used with JAR Template.

Right now I’m trying to understand:
– what the main odom setup lines are in JAR Template
– how to start odom and read the robot’s X/Y/heading
– how to read distance sensor values in C++
– how to read optical sensor color/object data
– how these sensors are usually used alongside odom

If anyone can explain the basic functions or show simple examples for beginners, that would help a lot. I’m still learning all of this.

Thanks.

1 Like