File avx_sensor_data_player.h
Last update: 22.04.2026Location: co_sim/avx_sensor/avx_sensor_data_player/avx_sensor_data_player.h
Classes
Namespaces
Includes
- <ansys/api/avxcelerate/sensors/v1/sensor_data/sensor_data.pb.h>
-
-
-
Source
#ifndef SIMFWK_AUTONOMY_COSIM_AVXSENSOR_AVXSENSORDATAPLAYER_AVXSENSORDATAPLAYER_H
#define SIMFWK_AUTONOMY_COSIM_AVXSENSOR_AVXSENSORDATAPLAYER_AVXSENSORDATAPLAYER_H
#include <ansys/api/avxcelerate/sensors/v1/sensor_data/sensor_data.pb.h>
#include <optional>
#include <string>
#include <vector>
namespace simulation_framework
{
namespace avx_sensor_cosim
{
class AvxSensorDataPlayer
{
public:
explicit AvxSensorDataPlayer(const std::string& file_path, const std::string& topic_name = "/avx/sensor_data");
~AvxSensorDataPlayer();
AvxSensorDataPlayer(const AvxSensorDataPlayer&) = delete;
AvxSensorDataPlayer& operator=(const AvxSensorDataPlayer&) = delete;
void Open();
bool HasNext() const;
std::optional<ansys::api::avxcelerate::sensors::v1::sensor_data::SensorData> GetNext();
void Reset();
private:
struct Impl;
std::unique_ptr<Impl> impl_;
};
} // namespace avx_sensor_cosim
} // namespace simulation_framework
#endif // SIMFWK_AUTONOMY_COSIM_AVXSENSOR_AVXSENSORDATAPLAYER_AVXSENSORDATAPLAYER_H