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

hotfix bug

parent f2cfa4ad
No related branches found
No related tags found
1 merge request!4Devel
...@@ -36,7 +36,7 @@ PublisherGnssTf::PublisherGnssTf(const std::string& _unique_name, ...@@ -36,7 +36,7 @@ PublisherGnssTf::PublisherGnssTf(const std::string& _unique_name,
ProblemConstPtr _problem) : ProblemConstPtr _problem) :
Publisher(_unique_name, _server, _problem) Publisher(_unique_name, _server, _problem)
{ {
auto sensor = std::dynamic_pointer_cast<const SensorGnss>(_problem->findSensor(_server.getParam<std::string>(prefix_ + "/sensor_gnss_name"))); sensor_gnss_ = std::dynamic_pointer_cast<const SensorGnss>(_problem->findSensor(_server.getParam<std::string>(prefix_ + "/sensor_gnss_name")));
if (not sensor_gnss_) if (not sensor_gnss_)
throw std::runtime_error("PublisherGnssTf: 'sensor_gnss_name' not found or wrong sensor type."); throw std::runtime_error("PublisherGnssTf: 'sensor_gnss_name' not found or wrong sensor type.");
......
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