Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to Run linorobot2_hardware in a Raspberry Pi #83

Open
mich1342 opened this issue Mar 17, 2024 · 1 comment
Open

Possibility to Run linorobot2_hardware in a Raspberry Pi #83

mich1342 opened this issue Mar 17, 2024 · 1 comment

Comments

@mich1342
Copy link

Hi @grassjelly,

Currently I am building an AMR based on your Linorobot2 setup including the hardware. I found it is quite hard for me to find teensy in my locations. I did some change of the linorobot2_hardware and change to Arduino IDE based and adjust my needs due to different hardware configuration. I have a NUC as the main PC running linorobot2 and a Microcontrollers running linorobot2_hardware.

I got an issue where at best the Odometry and IMU publisher could only reach at max ~7 Hz of data. I have tried publishing static value and turns out without updating the latest value from sensors I could only get ~9 Hz. What do you think about using a Raspberry Pi instead of a microcontroller to get higher data rate?

@hippo5329
Copy link
Contributor

hippo5329 commented Mar 28, 2024

The default serial baudrate 115200 is not fast enough to run control loop in 50Hz. Please change serial baudrate to 921600 on both the microcontroller and micro-ROS agent. The tennsy, pico pi and esp32-s3 do not have such issue as they use USB CDC protocol, ttyACM0. My recent pull request has resolved this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants