Skip to content
Snippets Groups Projects
Commit 79ed45c8 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Rename getSensor(name) --> findSensor(name)

parent 77871297
No related branches found
No related tags found
1 merge request!5After cmake and const refactor
......@@ -32,7 +32,7 @@ PublisherImuBias::PublisherImuBias(const std::string& _unique_name,
const ProblemPtr _problem) :
Publisher(_unique_name, _server, _problem)
{
sensor_imu_ = std::static_pointer_cast<SensorImu>(_problem->getSensor(_server.getParam<std::string>(prefix_ + "/sensor_name")));
sensor_imu_ = std::static_pointer_cast<SensorImu>(_problem->findSensor(_server.getParam<std::string>(prefix_ + "/sensor_name")));
}
void PublisherImuBias::initialize(ros::NodeHandle& nh, const std::string& topic)
......
......@@ -33,7 +33,7 @@ PublisherMapGrid2dGravity::PublisherMapGrid2dGravity(const std::string& _unique_
const ProblemPtr _problem) :
Publisher(_unique_name, _server, _problem)
{
sensor_imu_ = std::static_pointer_cast<SensorImu>(_problem->getSensor(_server.getParam<std::string>(prefix_ + "/sensor_name")));
sensor_imu_ = std::static_pointer_cast<SensorImu>(_problem->findSensor(_server.getParam<std::string>(prefix_ + "/sensor_name")));
}
void PublisherMapGrid2dGravity::initialize(ros::NodeHandle& nh, const std::string& topic)
......
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