百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
J

jetbot_ros

> 编程语言
开源

使用 Jetson Nano 的 NVIDIA JetBot 的 ROS 节点和 Gazebo 模型

400 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

使用 Jetson Nano 的 NVIDIA JetBot 的 ROS 节点和 Gazebo 模型

jetbot_ros

ROS2 nodes and Gazebo model for NVIDIA JetBot with Jetson Nano

note: if you want to use ROS Melodic, see the melodic branch

Start the JetBot ROS2 Foxy container

bash
git clone https://github.com/dusty-nv/jetbot_ros
cd jetbot_ros
docker/run.sh

Run JetBot

If you have a real JetBot, you can start the camera / motors like so:

bash
ros2 launch jetbot_ros jetbot_nvidia.launch.py

or (for a Sparkfun Jetbot)

bash
ros2 launch jetbot_ros jetbot_sparkfun.launch.py

Otherwise, see the Launch Gazebo section below to run the simulator.

Launch Gazebo

bash
ros2 launch jetbot_ros gazebo_world.launch.py

Then to run the following commands, launch a new terminal session into the container:

bash
sudo docker exec -it jetbot_ros /bin/bash

Test Teleop

bash
ros2 launch jetbot_ros teleop_keyboard.launch.py

The keyboard controls are as follows:

w/x:  increase/decrease linear velocity
a/d:  increase/decrease angular velocity

space key, s:  force stop

Press Ctrl+C to quit.

Data Collection

bash
ros2 launch jetbot_ros data_collection.launch.py

It's recommended to view the camera feed in Gazebo by going to Window -> Topic Visualization -> gazebo.msgs.ImageStamped and selecting the /gazebo/default/jetbot/camera_link/camera/image topic.

Then drive the robot and press the C key to capture an image. Then annotate that image in the pop-up window by clicking the center point of the path. Repeat this all the way around the track. It's important to also collect data of when the robot gets off-course (i.e. near the edges of the track, or completely off the track). This way, the JetBot will know how to get back on track.

Press Ctrl+C when you're done collecting data to quit.

Train Navigation Model

Run this from inside the container, substituting the path of the dataset that you collected (by default, it will be in a timestamped folder under /workspace/src/jetbot_ros/data/datasets/)

bash
cd /workspace/src/jetbot_ros/jetbot_ros/dnn
python3 train.py --data /workspace/src/jetbot_ros/data/datasets/20211018-160950/

Run Navigation Model

After the model has finished training, run the command below to have the JetBot navigate autonomously around the track. Substitute the path to your model below:

bash
ros2 launch jetbot_ros nav_model.launch.py model:=/workspace/src/jetbot_ros/data/models/202106282129/model_best.pth

note: to reset the position of the robot in the Gazebo environment, press Ctrl+R

Issues· 32 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Python

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言