waveshare / jetracer_ros

A ROS package of the WaveShare JetRacer ROS AI Kit. An educational AI robot based on NVIDIA Jetson Nano.
18 stars 3 forks source link

Jetracer Pro ROS driver? #1

Open leochien1110 opened 12 months ago

leochien1110 commented 12 months ago

Hi,

I just bought a Waveshare Jetracer Pro and installed a Jetson Orin Nano with the new Jetpack 5. I can run the basic_motion.ipynb from jetracer repo. It is using adafruit to control I2C 0X40 address to control the car. However, for this repo, I cannot launch the jetracer.launch due to the lack of ttyAMC0 port.

Here are all the tty* ports I have:

/dev/tty    /dev/tty25  /dev/tty42  /dev/tty6     /dev/ttyp9
/dev/tty0   /dev/tty26  /dev/tty43  /dev/tty60    /dev/ttypa
/dev/tty1   /dev/tty27  /dev/tty44  /dev/tty61    /dev/ttypb
/dev/tty10  /dev/tty28  /dev/tty45  /dev/tty62    /dev/ttypc
/dev/tty11  /dev/tty29  /dev/tty46  /dev/tty63    /dev/ttypd
/dev/tty12  /dev/tty3   /dev/tty47  /dev/tty7     /dev/ttype
/dev/tty13  /dev/tty30  /dev/tty48  /dev/tty8     /dev/ttypf
/dev/tty14  /dev/tty31  /dev/tty49  /dev/tty9     /dev/ttyS0
/dev/tty15  /dev/tty32  /dev/tty5   /dev/ttyAMA0  /dev/ttyS1
/dev/tty16  /dev/tty33  /dev/tty50  /dev/ttyGS0   /dev/ttyS2
/dev/tty17  /dev/tty34  /dev/tty51  /dev/ttyp0    /dev/ttyS3
/dev/tty18  /dev/tty35  /dev/tty52  /dev/ttyp1    /dev/ttyTCU0
/dev/tty19  /dev/tty36  /dev/tty53  /dev/ttyp2    /dev/ttyTHS0
/dev/tty2   /dev/tty37  /dev/tty54  /dev/ttyp3    /dev/ttyTHS3
/dev/tty20  /dev/tty38  /dev/tty55  /dev/ttyp4    /dev/ttyTHS4
/dev/tty21  /dev/tty39  /dev/tty56  /dev/ttyp5
/dev/tty22  /dev/tty4   /dev/tty57  /dev/ttyp6
/dev/tty23  /dev/tty40  /dev/tty58  /dev/ttyp7
/dev/tty24  /dev/tty41  /dev/tty59  /dev/ttyp8

I have no idea which one is the right one or is there anyway to control thru i2c like jetracer notebook?

Here's the i2cdetect -y -r 1 output:

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- UU -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --

How can I run your Jetracer Pro with the package?

Thank you in advanced/

linuxchunk commented 10 months ago

if have you found any solution kindly share with me I'm facing the same issue.