Skip to content

Commit 7795ded

Browse files
gleichdickahcorde
andauthored
Fix formatting nitpicks
Co-authored-by: Alejandro Hernández Cordero <[email protected]>
1 parent 3278ca2 commit 7795ded

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

tf2/include/tf2/impl/convert.h

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ struct ConversionImplementation<tf2::Stamped<Datatype>, StampedMessage>
302302
* \brief Partial specialization of impl::ConversionImplementation for stamped types with covariance.
303303
*
304304
* This partial specialization provides the conversion implementation ( \c toMsg() and \c fromMsg() )
305-
* between stamped types with covariance ( non-message types of tf2::WithCovarianceStamped\<T\>
305+
* between stamped types with covariance (non-message types of tf2::WithCovarianceStamped\<T\>
306306
* and ROS message datatypes with a \c header member).
307307
* The covariance, the timestamp and the frame ID are preserved during the conversion.
308308
* The implementation of tf2::toMsg() and tf2::fromMsg() for the unstamped types without covariance
@@ -398,7 +398,7 @@ struct Converter<false, true, A, B>
398398

399399
/** \brief Implementation of tf2::convert() for datatypes.
400400
* Converts the first argument to a message
401-
* (usually \c impl::DefaultMessageForDatatype<A>::type )
401+
* (usually \c impl::DefaultMessageForDatatype<A>::type)
402402
* and then converts the message to the second argument.
403403
* \tparam A Datatype of first argument.
404404
* \tparam B Datatype of second argument.
@@ -425,9 +425,9 @@ template<bool b, typename A>
425425
struct Converter<b, b, A, A>
426426
{
427427
/** \brief Overload of tf2::convert() for the same types.
428-
* \param[in] a1 an object to convert from
429-
* \param[in,out] a2 the object to convert to
430-
*/
428+
* \param[in] a1 an object to convert from
429+
* \param[in,out] a2 the object to convert to
430+
*/
431431
static void convert(const A & a1, A & a2)
432432
{
433433
if (&a1 != &a2) {
@@ -461,6 +461,7 @@ struct StampedAttributesHelper
461461
tf2::fromMsg<>(t.header.stamp, timestamp);
462462
return timestamp;
463463
}
464+
464465
/**\brief Get the frame_id from data
465466
* \param[in] t The data input.
466467
* \return The frame_id associated with the data.
@@ -479,6 +480,7 @@ struct StampedAttributesHelper<tf2::Stamped<T>>
479480
* \return The timestamp associated with the data.
480481
*/
481482
static tf2::TimePoint getTimestamp(const tf2::Stamped<T> & t) {return t.stamp_;}
483+
482484
/** \brief Get the frame_id from data
483485
* \param t The data input.
484486
* \return The frame_id associated with the data.
@@ -497,6 +499,7 @@ struct StampedAttributesHelper<tf2::WithCovarianceStamped<T>>
497499
* \return The timestamp associated with the data.
498500
*/
499501
static tf2::TimePoint getTimestamp(const tf2::WithCovarianceStamped<T> & t) {return t.stamp_;}
502+
500503
/** \brief Get the frame_id from data
501504
* \param t The data input.
502505
* \return The frame_id associated with the data.

0 commit comments

Comments
 (0)