fjkdashfjdal

This commit is contained in:
Sem van der Hoeven
2023-05-10 10:17:59 +02:00
parent 57662f42b4
commit 097ca3c533

View File

@@ -1,4 +1,4 @@
\#include <chrono> \#include<chrono>
#include "rclcpp/rclcpp.hpp" #include "rclcpp/rclcpp.hpp"
#include "object_detection/msg/multiflex_reading.hpp" #include "object_detection/msg/multiflex_reading.hpp"
@@ -7,9 +7,9 @@
#include <terabee/ITerarangerMultiflex.hpp> #include <terabee/ITerarangerMultiflex.hpp>
#include <terabee/DistanceData.hpp> #include <terabee/DistanceData.hpp>
#include <iostream> // #include <iostream>
using terabee::DistanceData; using terabee::DistanceData;
using namespace std::chrono_literals; using namespace std::chrono_literals;
@@ -71,15 +71,15 @@ private:
terabee::DistanceData data = multiflex->getDistance(); terabee::DistanceData data = multiflex->getDistance();
// populate message with readings // populate message with readings
auto msg = object_detection::msg::MultiflexReading(); // auto msg = object_detection::msg::MultiflexReading();
for (size_t i = 0; i < data.size(); i++) for (size_t i = 0; i < data.size(); i++)
{ {
std::cout << "distance " << data.distance[i] < std::endl; // std::cout << "distance " << data.distance[i] < std::endl;
// msg.distance_data[i] = data.distance[i]; // msg.distance_data[i] = data.distance[i];
} }
// publish message // publish message
// publisher_->publish(msg); // publisher_->publish(msg);
} }
}; };