Difference between revisions of "ASR-A501 Build for ROS2"

From ESS-WIKI
Jump to: navigation, search
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  
= Preface =
+
<h1>Preface</h1>
  
ROS2 provides support for multiple versions, and here we offer the ROS2 Jazzy installation package for use on Debian systems.
+
<p>ROS2 provides support for multiple versions, and here we offer the ROS2 Jazzy installation package for use on Debian systems.</p>
 +
 
 +
<p>Due to the need for an X11 interface, please enable the port on the desktop and use sudo privileges for the following command.</p>
  
 
= Install =
 
= Install =
Line 102: Line 104:
 
= Node Sample =
 
= Node Sample =
  
== c++ sample ==
+
=== '''c++ sample''' ===
  
 
Run example for subscribe, you can open a terminal to executing command:
 
Run example for subscribe, you can open a terminal to executing command:
Line 114: Line 116:
 
[[File:Ros2 suite node sample cpp.png|800x480px|Ros2 suite node sample cpp.png]]
 
[[File:Ros2 suite node sample cpp.png|800x480px|Ros2 suite node sample cpp.png]]
  
== turtlesim ==
+
=== '''turtlesim''' ===
  
 
Open a terminal to start turtlesim by executing command:
 
Open a terminal to start turtlesim by executing command:

Latest revision as of 10:10, 24 November 2025

Preface

ROS2 provides support for multiple versions, and here we offer the ROS2 Jazzy installation package for use on Debian systems.

Due to the need for an X11 interface, please enable the port on the desktop and use sudo privileges for the following command.

Install

百度网盘(Password: a887)

Dropbox

Download the above link and copy it to the board for decompression and use.

$ tar -xzvf install.tar.gz ./

Before executing instructions in each window, it is necessary to source the environment repository first.

$ source install/local_setup.bash

rqt_graph

Introduction

rqt_graph provides a GUI plugin for visualizing the ROS computation graph.

 

Run rqt graph

$ ros2 run rqt_graph rqt_graph
ROS2 rqt graph

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

rqt_console

Introduction

rqt_console is a viewer in the rqt package that displays messages being published to rosout. It collects messages over time, and lets you view them in more detail, as well as allowing you to filter messages by various means.

Run rqt console

$ ros2 run rqt_console rqt_console
ROS2 rqt console
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

RViz

Introduction

RViz is a 3D visualization tool for ROS.

How To Startup

$ ros2 run rviz2 rviz2

ROS2 RViz 

Node Sample

c++ sample

Run example for subscribe, you can open a terminal to executing command:

$ ros2 run demo_nodes_cpp listener

Open a new terminal to executing command to publish:

$ ros2 run demo_nodes_cpp talker

Ros2 suite node sample cpp.png

turtlesim

Open a terminal to start turtlesim by executing command:

$ ros2 run turtlesim turtlesim_node

The simulator window should appear, with a random turtle in the center.

RTENOTITLE

Open a new terminal, run a new node to control the turtle in the first node by executing command:

$ ros2 run turtlesim turtle_teleop_key

Use the arrow keys on your keyboard to control the turtle. It will move around the screen, using its attached “pen” to draw the path it followed so far.

RTENOTITLE

Editor