-
Notifications
You must be signed in to change notification settings - Fork 5
msg: point
Salvo Virga edited this page Sep 22, 2018
·
3 revisions
simple_msgs::Point
messages represent a 3D position in space: X, Y, Z.
A simple_msgs::PointStamped
message is a Point
+ Header
:
the position can then be linked to a reference frame defined by Header.frame_id
and its timestamp can be stored in Header.timestamp
.
In code:
simple_msgs::Header my_header{0, "root", 1.0};
simple_msgs::Point my_point{1.0, 2.0, 3.0};
simple_msgs::PointStamped my_pointstamped{my_header, my_point}
You can manipulate the PointStamped
message using its setters/getters. E.g.
my_pointstamped.getHeader.setTimestamp(2.0);