Function polygon_utils::movePolygonToPose(const polygon_msgs::msg::ComplexPolygon2D&, const geometry_msgs::msg::Pose2D&)

Function Documentation

polygon_msgs::msg::ComplexPolygon2D polygon_utils::movePolygonToPose(const polygon_msgs::msg::ComplexPolygon2D &polygon, const geometry_msgs::msg::Pose2D &pose)

Translate and rotate a polygon to a new pose.

Parameters:
  • polygon – The polygon

  • pose – The x, y and theta to use when moving the polygon

Returns:

A new moved polygon