Skip to content
Snippets Groups Projects
Commit 95354b0a authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

map_frame_id via param server

parent 2f9aabe3
No related branches found
No related tags found
1 merge request!4Devel
......@@ -46,12 +46,12 @@ PublisherGnssTf::PublisherGnssTf(const std::string& _unique_name,
T_ecef_enu_.frame_id_ = "ECEF";
T_ecef_enu_.child_frame_id_ = "ENU";
T_ecef_enu_.stamp_ = ros::Time::now();
T_enu_map_.child_frame_id_ = _server.getParam<std::string>(prefix_ + "/map_frame_id");
}
void PublisherGnssTf::initialize(ros::NodeHandle& nh, const std::string& topic)
{
nh.param<std::string>("map_frame_id", T_enu_map_.child_frame_id_, "map");
std::cout << "PublisherGnssTf initialized using map_frame_id: " << T_enu_map_.child_frame_id_ << std::endl;
}
void PublisherGnssTf::publishDerived()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment