Help with real robot #27
Replies: 69 comments 204 replies
-
A1M8 and L298 are fine. |
Beta Was this translation helpful? Give feedback.
-
L298 |
Beta Was this translation helpful? Give feedback.
-
Take some picture of your wiring. esp32 power from usb of rpi. MPU6050 power from VOUT 5V of esp32. L298 uses on-board 5V jumper plug. You will need a 3.3V regulator (LM1117 etc) for encoder ,from L298 5V output. |
Beta Was this translation helpful? Give feedback.
-
esp32 i/o pins assignment |
Beta Was this translation helpful? Give feedback.
-
2WD unused pwm 13 12 4 23 encoder 32 27 26 25 pins leave unconnected. You need 33K and 10k for battery voltage sensor. It is important to debug motor issue. |
Beta Was this translation helpful? Give feedback.
-
laptop --wifi -- rpi --usb-- A1M8 and esp32 |
Beta Was this translation helpful? Give feedback.
-
Jetson nano SDK uses ubuntu 18.04 You can try community image, |
Beta Was this translation helpful? Give feedback.
-
You can try docker on jetson nono. |
Beta Was this translation helpful? Give feedback.
-
"Docker is included in JetPack, so running containers on Jetson is easy and does not require any installation. " https://developer.nvidia.com/embedded/learn/tutorials/jetson-container |
Beta Was this translation helpful? Give feedback.
-
https://github.com/Qengineering/Jetson-Nano-image https://github.com/jetsonhacks/bootFromUSB https://github.com/Qengineering/Jetson-Nano-Ubuntu-20-image https://kalanaratnayake.medium.com/reviving-jetson-nano-with-ubuntu-20-04-2dc1f82b18f4 |
Beta Was this translation helpful? Give feedback.
-
You can use either docker or lxd. docker is is easier to share and more popular. There are official ros2 docker images. https://roboticseabass.com/2023/07/09/updated-guide-docker-and-ros2/ https://docs.ros.org/en/jazzy/How-To-Guides/Run-2-nodes-in-single-or-separate-docker-containers.html https://docs.ros.org/en/iron/How-To-Guides/Setup-ROS-2-with-VSCode-and-Docker-Container.html https://github.com/DominikN/ros2_docker_examples https://divyanshu-raj.medium.com/ros-2-with-docker-part-1-9060f3095811 I use lxd heavily for many years. https://documentation.ubuntu.com/lxd/en/latest/tutorial/first_steps/ |
Beta Was this translation helpful? Give feedback.
-
You should update to Jazzy. Most humble example code will work. |
Beta Was this translation helpful? Give feedback.
-
andino looks good. |
Beta Was this translation helpful? Give feedback.
-
docker compose build rviz works now. |
Beta Was this translation helpful? Give feedback.
-
docker compose build rviz can be displayed. We want to verify the X11 to vnc work. But there is no laser scan, so it is blank. This is normal. The linorobot2 docker compose contains many service containers, for webtop, bringup, slam, nav and rviz etc. They do not need l4t/cuda. Only vision/ml nodes need l4t/cuda image. webtop can run some docker commands, but it does not have volumes mapped. You can docker compose up debug in jetson ubuntu. Then docker exec -it debug bash inside terminal in webtop. |
Beta Was this translation helpful? Give feedback.
-
oh, let's start over, so now the process to display lidar-sensor to Rviz will be:
rviz works now.
then, docker compose up debug in jetson ubuntu. Then docker exec -it debug bash inside terminal in webtop. |
Beta Was this translation helpful? Give feedback.
-
The webtop error screen showed when webtop service down. I switched to pico and it works now. I wonder if it is esp32 to usb serial ttyUSB0 docker driver issue. cd linorobot2/docker |
Beta Was this translation helpful? Give feedback.
-
.env for pico
|
Beta Was this translation helpful? Give feedback.
-
I am encountering this error while running the simulation in Gazebo, and I haven't made any adjustments to the code. Can you help me |
Beta Was this translation helpful? Give feedback.
-
Good. Let's start over. There is no need to connect monitor and keyboard to jetson/rpi. As jestson/rpi will be mounted on the robot. You cannot keep running with the robot moving. You should use ssh and remote development. To debug, up only bringup. Check the topic and hz with another ros docker. Make sure /scan is 10Hz and /imu/data is 50Hz |
Beta Was this translation helpful? Give feedback.
-
@hippo5329 your mean: do it https://github.com/Slamtec/sllidar_ros2 in my ros2-docker-container, right? |
Beta Was this translation helpful? Give feedback.
-
oh, @hippo5329 I proceed it, right https://github.com/hippo5329/linorobot2/tree/pr-lidar#31-run-rviz2-to-visualize-the-robot-from-host-machine |
Beta Was this translation helpful? Give feedback.
-
so fun @hippo5329 , after I down, then run 1 time, it fixing one thing, now lidar has been showed up |
Beta Was this translation helpful? Give feedback.
-
It seem the vol mapping does not work.
We will need to look into this. |
Beta Was this translation helpful? Give feedback.
-
You may try update the map and build again. |
Beta Was this translation helpful? Give feedback.
-
#define MOTOR_MAX_RPM 150 // motor's max RPM |
Beta Was this translation helpful? Give feedback.
-
You should adjust the above parameters to your. |
Beta Was this translation helpful? Give feedback.
-
Make sure the imu and lidar are in correct orientation. https://github.com/hippo5329/linorobot2_hardware/wiki#configure-urdf-in-linorobot2 https://github.com/hippo5329/linorobot2_hardware/wiki#velocity-smoother---optional You can describe your problem in more details. Or take videos. |
Beta Was this translation helpful? Give feedback.
-
Hi @hippo5329, see your robot tank very interesting.
now, I don't have a LD19 lidar and Driver for Robots like you, I have an A1M8, and L298. Should I buy a new Driver? (In that case, I must order from abroad. yeah It'll take a long time 😄 )
here is a sample I'm doing with
Beta Was this translation helpful? Give feedback.
All reactions