Messages

Library messages contains support wrappers for data structures commonly used in robotics. The individual message types allow for standardizing the interfaces between the functional parts of the robot software architecture. The implementation of the library is inspired by the ROS middleware which is commonly used in robotics to manage software architecture of the robots. While the ROS messages are only data wrappers, our implementation features several simplifications and some of the message classes include additional code to simplify work with them.

The messages used in the tasks within the UIR course are inherited from the Message class and are following:

  1. Header
  2. Vector3
  3. Quaternion
  4. Pose
  5. Odometry
  6. Twist
  7. Path
  8. LaserScan
  9. OccupancyGrid
  10. NavGraph

The structure of the individual message classes and the description of their methods follows.


General message header that contains information common for most of the message types

Attributes


Vector3

Message for representation of 3D vectors with $x$,$y$,$z$ components

Attributes


Quaternion

Message for representation of 3D orientation using unit quaternion. There are multiple ways how to represent the rotations in the robotics, with the rotation matrices and quaternions being superior to Euler angles with their commonly used variant Tait–Bryan angles. The Euler angles is a representation of the robot orientation in 3D using rotations around principal axes of the robot. In particular, the original Euler angles are prescribed by one of the following orders of rotation ($zxz$, $xyx$, $yzy$, $zyz$, $xzx$, $yxy$) with the more common representation using the Tait–Bryan angles variant prescribed by one of the following orders of rotation ($xyz$, $yzx$, $zxy$, $xzy$, $zyx$, $yxz$) commonly referred to as yaw (rotation around $z$ axis), pitch (rotation around $y$ axis), and roll (rotation around $x$ axis) of the robot, similar to the following figure (courtesy of Wikipedia).

There are two principal problems in usage of Euler (Tait–Bryan) angles. First is the missing standardization of rotation order which leaves us with twelve possible sequences of rotations. Second, the Gimball-lock effect which is a loss of Degree of Freedom that occurs when two axes are driven into a parallel configuration by the sequence of the rotations. Hence, representation of the orientation using quaternions and rotation matrices is therefore better considered a better option.

Attributes

Methods


Pose

Basic class for representing robot pose in free space in form of $x,y,z$ position vector and orientation quaternion

Attributes

Methods


Path

Basic class for representing the robot path in free space

Attributes

Methods


Odometry

Basic class for representing robot odometry as a timestamped pose in the given reference frame

Attributes


Twist

Basic class for representing velocity in free space broken into the linear and angular components

Attributes


LaserScan

Basic class for representing a single line scan from planar laser scanner

Attributes

Methods


OccupancyGrid

Basic class for representing occupancy grid map

Attributes

Methods


Basic class for representing the navigation graph $\mathcal{G}=(V,E)$, where $V$ is a set of vertices and $E$ is a set of edges.

Attributes

Methods