-
Notifications
You must be signed in to change notification settings - Fork 98
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
MicroRos Agent Stucked #88
Comments
Please check your USB connection.
|
If you are new to micro-ROS, you may use pico and esp32 instead of teensy. Please check my wiki at https://github.com/hippo5329/linorobot2_hardware/wiki . |
can I use teensy and for your github repo? |
Yes, it should work. I suggested esp32 and pico because they are cheaper than teensy and have hardware encoder counters instead of the interrupt-driven on teensy. I have tested upload and connect to micro-ROS agent with teensy40 and teensy41. Though I do not use teensy to build robots and have not test teensy on real robots. There are issues in platformio teensy upstream, so the first upload to teensy might fail. But the second upload should success. It is not related to linorobot. You may use lino_base_config.h as a template and create your custom configuration. I have suggested test the micro-ROS agent connection with the micro-controller module alone before wiring and building the robot. BTW, Can you see the /dev/ttyACM0 device after upload? |
Test micro-ROS agent connection - RecommendedIt is recommended to test the micro-ROS agent connection with the micro-controller module alone before wiring and building the robots. Choose the configuration you will use to build your robot. If you use teensy and lino_base_config, comment out the "#define USE_GY85_IMU" in lino_base_config.h. Then build, upload and test the micro-ROS agent connection. |
Esp32 and pico are suggested because they are cheaper than teensy and have hardware encoder counters instead of the interrupt-driven on teensy. The hardware encoder counters can count up to MHz. It will be almost impossible for the more expensive teensy to reach this speed. |
I see, alright thanks |
May I know why need to comment out the IMU define? |
We would like the teensy module connects to micro-ROS agent without the IMU. If the IMU is enabled but failed to initialize, the teensy will stop and blink the LED 3 times per second. So we comment out the IMU. Only the teensy module alone is needed to perform this connection test. |
I am also having these problems. Motor / encoder checks work - teensy40 firmware upload works - teleop_twist seems to function But no motors moving Is running the micro_ros_agent supposed to have more output? Teensy light flashes 3 times repeatedly Commenting out the IMU shows error about commenting out IMU I am using IMU GY-521 After successful build Commenting out IMU |
Please switch to my fork. cd linorobot2_hardware/firmware Comment out the GY85 in line_base_config.h, build, upload and test connection. |
Gy-521 is MPU6050. |
Oh nice I switched over to your fork and it seems to be working now There is more output after running micro_ros_agent Teensy has solid light - keys pressed for teleop_twist move wheels Will investigate further Thank you @hippo5329 for the work |
I succesfully uploaded the firmware into teensy 4.0, but then when I run micro-ros-agent, it won't start any node as attached picture below:
I have tried to push the reset button then it become like this:
I also tried to unplug and plugged again teensy board then it become like this:
I'm using ros2 humble, but I already tried on ros2 galactic also. Already tried both on laptop and Raspberry Pi 4B.
The text was updated successfully, but these errors were encountered: