Skip to content

Commit cdaada5

Browse files
committed
use only tag name, not family
1 parent c2cfd8e commit cdaada5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/AprilTagNode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ void AprilTagNode::onImage(const sensor_msgs::msg::Image::ConstSharedPtr& msg_im
250250
geometry_msgs::msg::TransformStamped tf;
251251
tf.header = msg_img->header;
252252
// set child frame name by generic tag name or configured tag name, prefixed with node name
253-
std::string base_frame_name = tag_frames.count(det->id) ? tag_frames.at(det->id) : std::string(det->family->name) + ":" + std::to_string(det->id);
253+
std::string base_frame_name = std::to_string(det->id);
254254
tf.child_frame_id = std::string(this->get_name()) + "/" + base_frame_name;
255255
const double size = tag_sizes.count(det->id) ? tag_sizes.at(det->id) : tag_edge_size.load();
256256
if(estimate_pose != nullptr) {

0 commit comments

Comments
 (0)