File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -8,16 +8,15 @@ class RegistryPublisher {
88public:
99 static std::shared_ptr<RegistryPublisher> getRegistryPub () {
1010 // static local variables are intialized once and persist out of scope and subsequent calls
11- static std::shared_ptr<RegistryPublisher> registry_pub
12- = std::make_shared<RegistryPublisher>(); // {new RegistryPublisher()};
11+ static std::shared_ptr<RegistryPublisher> registry_pub =
12+ std::make_shared<RegistryPublisher>(); // {new RegistryPublisher()};
1313 return registry_pub;
1414 }
1515
1616 void publish (const std::string& label, uint8_t robot_id, uint64_t time);
1717 RegistryPublisher () = default ;
1818
1919private:
20-
2120 // Private Constructor
2221 // RegistryPublisher() = default;
2322
Original file line number Diff line number Diff line change @@ -40,13 +40,10 @@ Registry::~Registry() {
4040 // Print out data row by row
4141 for (size_t row = 0 ; row < max_rows_; ++row) {
4242 for (const auto & [label, timestamps] : registry_[i]) {
43- if (row >= timestamps.size ())
44- {
43+ if (row >= timestamps.size ()) {
4544 // sentinel value
4645 robot_csv << -1 << ' ,' ;
47- }
48- else
49- {
46+ } else {
5047 robot_csv << timestamps[row] << ' ,' ;
5148 }
5249 }
You can’t perform that action at this time.
0 commit comments