log_file.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "hebi.h"
4 
5 #include <memory>
6 
7 #include "group_feedback.hpp"
8 
9 namespace hebi {
10 
11 class LogFile final {
12  friend class Group;
13 
14 private:
16  const int number_of_modules_;
17 
18  LogFile(HebiLogFilePtr internal, int number_of_modules);
19 
20 public:
28  static std::shared_ptr<LogFile> open(std::string file);
29 
33  int size() const;
34 
44  bool getNextFeedback(GroupFeedback& feedback);
45 
46  LogFile() = delete;
47  ~LogFile();
48 
50 };
51 
52 } // namespace hebi
A list of Feedback objects that can be received from a Group of modules; the size() must match the nu...
Represents a group of physical HEBI modules, and allows Command, Feedback, and Info objects to be sen...
Definition: group.hpp:29
HEBI_DISABLE_COPY_MOVE(LogFile)
LogFile()=delete
Definition: arm.cpp:5
HebiLogFilePtr internal_
Definition: log_file.hpp:15
const int number_of_modules_
Definition: log_file.hpp:16
bool getNextFeedback(GroupFeedback &feedback)
retrieves the next group feedback from the log file, if any exists
Definition: log_file.cpp:19
int size() const
Returns the number of modules in the log file.
Definition: log_file.cpp:17
struct HebiLogFile_ * HebiLogFilePtr
The C-style&#39;s API representation of a log file.
Definition: hebi.h:514
static std::shared_ptr< LogFile > open(std::string file)
Opens an existing log file.
Definition: log_file.cpp:8


hebi_cpp_api_ros
Author(s): Chris Bollinger , Matthew Tesch
autogenerated on Thu May 28 2020 03:14:45