Skip to content

Commit

Permalink
style(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jan 15, 2025
1 parent cfba383 commit d135b11
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ struct Acceleration

} // namespace autoware::component_interface_specs::localization

#endif // AUTOWARE__COMPONENT_INTERFACE_SPECS__LOCALIZATION_HPP_
#endif // AUTOWARE__COMPONENT_INTERFACE_SPECS__LOCALIZATION_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ struct ObjectRecognition

} // namespace autoware::component_interface_specs::perception

#endif // AUTOWARE__COMPONENT_INTERFACE_SPECS__PERCEPTION_HPP_
#endif // AUTOWARE__COMPONENT_INTERFACE_SPECS__PERCEPTION_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ struct Trajectory

} // namespace autoware::component_interface_specs::planning

#endif // AUTOWARE__COMPONENT_INTERFACE_SPECS__PLANNING_HPP_
#endif // AUTOWARE__COMPONENT_INTERFACE_SPECS__PLANNING_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef AUTOWARE__COMPONENT_INTERFACE_SPECS__BASE_HPP_
#define AUTOWARE__COMPONENT_INTERFACE_SPECS__BASE_HPP_
#ifndef AUTOWARE__COMPONENT_INTERFACE_SPECS__UTILS_HPP_
#define AUTOWARE__COMPONENT_INTERFACE_SPECS__UTILS_HPP_

#include <rclcpp/qos.hpp>

Expand All @@ -27,9 +27,11 @@ namespace autoware::component_interface_specs
template <typename T>
rclcpp::QoS get_qos(T interface)
{
return rclcpp::QoS{interface.depth}.reliability(interface.reliability).durability(interface.durability);
return rclcpp::QoS{interface.depth}
.reliability(interface.reliability)
.durability(interface.durability);
}

} // namespace autoware::component_interface_specs

#endif // AUTOWARE__COMPONENT_INTERFACE_SPECS__BASE_HPP_
#endif // AUTOWARE__COMPONENT_INTERFACE_SPECS__UTILS_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ TEST(localization, interface)
EXPECT_EQ(kinematic_state.reliability, RMW_QOS_POLICY_RELIABILITY_RELIABLE);
EXPECT_EQ(kinematic_state.durability, RMW_QOS_POLICY_DURABILITY_VOLATILE);


const auto qos = autoware::component_interface_specs::get_qos(kinematic_state);
EXPECT_EQ(qos.depth(), depth);
EXPECT_EQ(qos.reliability(), rclcpp::ReliabilityPolicy::Reliable);
Expand Down

0 comments on commit d135b11

Please sign in to comment.