Function swri_transform_util::FrameIdsEqual

Function Documentation

bool swri_transform_util::FrameIdsEqual(const std::string &frame1, const std::string &frame2)

Compare two TF frame IDs, assuming that frames with relative paths are in the global namespace. E.g. “map” == “/map” “map” == “map” “//map” != “/map” “/ns/map” == “ns/map” “/ns/map” != “map” “/ns/map” != “/map”

Parameters:
  • frame1[in] A TF frame ID, with or without a leading slash

  • [in[ – frame2 A TF frame ID, with or without a leading slash

Returns:

True if the frames match