Skip to content

Commit 6bcf949

Browse files
committed
Fix line-length formatting issues in a few files
`ament_cpplint` reported a few formatting issues, all to do with lines longer than 100 characters. These issues have been addressed with `ament_uncrustify --reformat`. Signed-off-by: Abrar Rahman Protyasha <[email protected]>
1 parent c3f7b00 commit 6bcf949

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

tf2/include/tf2/convert.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ void convert(const A & a1, A & a2)
165165
* \return A nested array representation of 6x6 covariance values.
166166
*/
167167
inline
168-
std::array<std::array<double, 6>, 6> covarianceRowMajorToNested(const std::array<double, 36> & row_major)
168+
std::array<std::array<double, 6>, 6> covarianceRowMajorToNested(
169+
const std::array<double, 36> & row_major)
169170
{
170171
std::array<std::array<double, 6>, 6> nested_array;
171172
std::array<double, 36>::const_iterator ss = row_major.begin();
@@ -182,7 +183,8 @@ std::array<std::array<double, 6>, 6> covarianceRowMajorToNested(const std::array
182183
* \return A row-major array of 36 covariance values.
183184
*/
184185
inline
185-
std::array<double, 36> covarianceNestedToRowMajor(const std::array<std::array<double, 6>, 6> & nested_array)
186+
std::array<double, 36> covarianceNestedToRowMajor(
187+
const std::array<std::array<double, 6>, 6> & nested_array)
186188
{
187189
std::array<double, 36> row_major = {};
188190
size_t counter = 0;

tf2/include/tf2/transform_datatypes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class WithCovarianceStamped : public T
9797
public:
9898
TimePoint stamp_; ///< The timestamp associated with this data
9999
std::string frame_id_; ///< The frame_id associated this data
100-
std::array<std::array<double, 6>, 6> cov_mat_; ///< The covariance matrix associated with this data
100+
std::array<std::array<double, 6>, 6> cov_mat_; ///< The covariance matrix associated with this data // NOLINT
101101

102102
/** Default constructor */
103103
WithCovarianceStamped()

tf2/src/buffer_core.cpp

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,10 @@ bool BufferCore::canTransformInternal(
734734
}
735735

736736
CanTransformAccum accum;
737-
if (walkToTopParent(accum, time, target_id, source_id, error_msg, nullptr) == tf2::TF2Error::TF2_NO_ERROR) {
737+
if (walkToTopParent(
738+
accum, time, target_id, source_id,
739+
error_msg, nullptr) == tf2::TF2Error::TF2_NO_ERROR)
740+
{
738741
return true;
739742
}
740743

@@ -1209,8 +1212,9 @@ void BufferCore::cancelTransformableRequest(TransformableRequestHandle handle)
12091212
std::unique_lock<std::mutex> tr_lock(transformable_requests_mutex_);
12101213
std::unique_lock<std::mutex> tc_lock(transformable_callbacks_mutex_);
12111214

1212-
V_TransformableRequest::iterator remove_it = std::remove_if(transformable_requests_.begin(), transformable_requests_.end(),
1213-
[handle](TransformableRequest req) { return handle == req.request_handle; });
1215+
V_TransformableRequest::iterator remove_it = std::remove_if(
1216+
transformable_requests_.begin(), transformable_requests_.end(),
1217+
[handle](TransformableRequest req) {return handle == req.request_handle;});
12141218
for (V_TransformableRequest::iterator it = remove_it; it != transformable_requests_.end(); ++it) {
12151219
transformable_callbacks_.erase(it->cb_handle);
12161220
}
@@ -1345,7 +1349,9 @@ std::string BufferCore::_allFramesAsDot(TimePoint current_time) const
13451349
frame_id_num = temp.frame_id_;
13461350
}
13471351
std::string authority = "no recorded authority";
1348-
std::map<CompactFrameID, std::string>::const_iterator it = frame_authority_.find(static_cast<CompactFrameID>(counter));
1352+
std::map<CompactFrameID,
1353+
std::string>::const_iterator it =
1354+
frame_authority_.find(static_cast<CompactFrameID>(counter));
13491355
if (it != frame_authority_.end()) {
13501356
authority = it->second;
13511357
}

0 commit comments

Comments
 (0)