Browse Source

Merge ae743d6ec2 into d0b76523fd

pull/18/merge
Binit Shah 2 months ago
committed by GitHub
parent
commit
8f278d78e5
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
6 changed files with 32 additions and 4 deletions
  1. +1
    -0
      mkdocs_rt.yml
  2. +7
    -4
      ros2/getting_started.md
  3. BIN
     
  4. BIN
     
  5. BIN
     
  6. +24
    -0
      ros2/tf2.md

+ 1
- 0
mkdocs_rt.yml View File

@ -84,6 +84,7 @@ extra:
nav:
- Getting Started: ./getting_started.md
- Robot Drivers: ./robot_drivers.md
- The Transform Tree: ./tf2.md
# - Writing Nodes: ./writing_nodes.md # TODO
- Navigation with Nav2:
- Overview: ./navigation_overview.md

+ 7
- 4
ros2/getting_started.md View File

@ -6,10 +6,13 @@ This tutorial series covers writing ROS 2 software for Stretch. ROS 2 programs c
Ensure that:
1. Your Stretch has the latest robot distribution installed
- These tutorials were written for the latest robot distribution. Take a look at the [Distributions & Roadmap](../../../software/distributions/) guide to identify your current distribution and upgrade if necessary.
2. You are comfortable developing with Stretch
- If you've never developed with Stretch before or are new to programming, check out the [Developing with Stretch](../../developing/basics/) tutorial series. In particular, the [Using ROS 2 with Stretch](#TODO) tutorial from that series is a good resource for those new to ROS 2.
1. Your Stretch has the latest software installed
- These tutorials were written for Ubuntu 22.04 and ROS2 Humble. Take a look at the [Distributions & Roadmap](../../../software/distributions/) guide to identify your current distribution and upgrade if necessary.
2. You are comfortable with Linux, the command line, and Python
- If you are new to programming, check out the [Developing with Stretch](../../developing/basics/) tutorial series.
3. Your Stretch is able to move freely about its environment
- Use an untethered set-up to connect to your robot, such as Remote Desktop software or using SSH + ROS2 networking. These tutorials were written assuming you've set up the [Moonlight Remote Desktop software](../../getting_started/connecting_to_stretch#untethered-setup) from the Getting Started tutorial series.
<!-- TODO:
## Overview

BIN
View File


BIN
View File


BIN
View File


+ 24
- 0
ros2/tf2.md View File

@ -0,0 +1,24 @@
# The Transform Tree
The many 3D coordinate frames on Stretch are managed by a piece of software called "tf2" (TransForm version 2). In this tutorial, we'll cover what "transformation frames" are, where they are placed on Stretch, and how to work with them using the TF2 library.
![transform tree](./images/stretch_transforms.png){ loading=lazy }
When working with a robot, we'd like to know where each part of the robot is in 3D space. Mathematically, the coordinate transformation system allows us to precisely describe where everything is located.
## Background
A great introduction on this subject can be found in chapter 2 of John J. Craig's textbook, Introduction to Robotics: Mechanics and Control. But in brief, a 3D coordinate frame is composed of 3 axes, orthogonal to one another according to the right-hand coordinate frame convention.
![frame](./images/tf2_frame.png){ loading=lazy }
!!! note
The X, Y, and Z axes are colored red, green, and blue respectively. An easy way to remember this is to map XYZ -> RGB
A "transformation" or transform describes the position and orientation of a coordinate frame with respect to another coordinate frame.
![transform](./images/tf2_transform.png){ loading=lazy }
Position and orientation can be described by 6 numbers: x, y, and z for position and roll, pitch, and yaw for orientation (more commonly, you'll see orientation described as a quaternion which is 4 numbers). Another term for a position + orientation combo is "pose". If we know the pose of an object in one coordinate frame, and we know the transform between this frame to another, then we can find the pose of the object with respect the latter frame. If we continue describing frames with respect to previous ones, we'll have built up a chain of transforms. Similarly, we can build up transform trees, and even transform graphs with cyclic connections.

Loading…
Cancel
Save