3939#include < fuse_core/serialization.h>
4040#include < fuse_core/uuid.h>
4141#include < fuse_core/variable.h>
42- #include < ros /time.h >
42+ #include < rclcpp /time.hpp >
4343
4444#include < boost/range/any_range.hpp>
4545#include < boost/serialization/access.hpp>
@@ -66,7 +66,7 @@ namespace fuse_core
6666class Transaction
6767{
6868public:
69- FUSE_SMART_PTR_DEFINITIONS (Transaction);
69+ FUSE_SMART_PTR_DEFINITIONS (Transaction)
7070
7171 /* *
7272 * @brief A range of Constraint::SharedPtr objects
@@ -78,13 +78,13 @@ class Transaction
7878 using const_constraint_range = boost::any_range<const Constraint, boost::forward_traversal_tag>;
7979
8080 /* *
81- * @brief A range of ros ::Time objects
81+ * @brief A range of rclcpp ::Time objects
8282 *
8383 * An object representing a range defined by two iterators. It has begin() and end() methods (which means it can
8484 * be used in range-based for loops), an empty() method, and a front() method for directly accessing the first
85- * member. When dereferenced, an iterator returns a const ros ::Time&.
85+ * member. When dereferenced, an iterator returns a const rclcpp ::Time&.
8686 */
87- using const_stamp_range = boost::any_range<const ros ::Time, boost::forward_traversal_tag>;
87+ using const_stamp_range = boost::any_range<const rclcpp ::Time, boost::forward_traversal_tag>;
8888
8989 /* *
9090 * @brief A range of UUID objects
@@ -107,12 +107,12 @@ class Transaction
107107 /* *
108108 * @brief Read-only access to this transaction's timestamp
109109 */
110- const ros ::Time& stamp () const { return stamp_; }
110+ const rclcpp ::Time& stamp () const { return stamp_; }
111111
112112 /* *
113113 * @brief Write access to this transaction's timestamp
114114 */
115- void stamp (const ros ::Time& stamp) { stamp_ = stamp; }
115+ void stamp (const rclcpp ::Time& stamp) { stamp_ = stamp; }
116116
117117 /* *
118118 * @brief Read-only access to the set of timestamps involved in this transaction
@@ -127,15 +127,15 @@ class Transaction
127127 *
128128 * @return The minimum (oldest) timestamp.
129129 */
130- const ros ::Time& minStamp () const ;
130+ const rclcpp ::Time& minStamp () const ;
131131
132132 /* *
133133 * @brief Read-only access to the maximum (newest) timestamp among the transaction's stamp and all involved
134134 * timestamps, if any
135135 *
136136 * @return The maximum (newest) timestamp.
137137 */
138- const ros ::Time& maxStamp () const ;
138+ const rclcpp ::Time& maxStamp () const ;
139139
140140 /* *
141141 * @brief Read-only access to the added constraints
@@ -180,7 +180,7 @@ class Transaction
180180 *
181181 * @param[in] stamp The timestamp to be added
182182 */
183- void addInvolvedStamp (const ros ::Time& stamp);
183+ void addInvolvedStamp (const rclcpp ::Time& stamp);
184184
185185 /* *
186186 * @brief Add a constraint to this transaction
@@ -282,10 +282,10 @@ class Transaction
282282 void deserialize (fuse_core::TextInputArchive& /* archive */ );
283283
284284private:
285- ros ::Time stamp_; // !< The transaction message timestamp
285+ rclcpp ::Time stamp_; // !< The transaction message timestamp
286286 std::vector<Constraint::SharedPtr> added_constraints_; // !< The constraints to be added
287287 std::vector<Variable::SharedPtr> added_variables_; // !< The variables to be added
288- std::set<ros ::Time> involved_stamps_; // !< The set of timestamps involved in this transaction
288+ std::set<rclcpp ::Time> involved_stamps_; // !< The set of timestamps involved in this transaction
289289 std::vector<UUID> removed_constraints_; // !< The constraint UUIDs to be removed
290290 std::vector<UUID> removed_variables_; // !< The variable UUIDs to be removed
291291
0 commit comments