NVIDIA-AI-IOT / jetracer

An autonomous AI racecar using NVIDIA Jetson Nano
MIT License
1.06k stars 319 forks source link

: I don't know how to control the DC and servo motors of Jetracer. #142

Open jaeaehun opened 1 year ago

jaeaehun commented 1 year ago

I need to submit my graduation project soon, but my code is not working. I'm using Python code and I'm getting the following error: I wrote the code like this: from jetracer.nvidia_racecar import NvidiaRacecar car = NvidiaRacecar()

Then I get the following error: no module named 'jetracer.nvidia race car'

The code works in Jupyter Notebook, but when I create a python file directly in catkin_ws/src/jetracer_ros/scripts, I get an error. I want to control the Jetracer directly with Python code, like in the "BASIC MOTION" example in Jupyter Notebook. In other words, I want to make the car go forward by writing car.throttle = 0.3 in my code. How can I solve this?

Environment:

Using ROS Developing on Nomachine Completed all tutorials except for multi-machine configure (cannot receive ROS msg) Jetracer does not work with Keyboard Control.