Skip to content

Commit

Permalink
style(pre-commit): fix clang-format errors
Browse files Browse the repository at this point in the history
  • Loading branch information
texhnolyze committed Dec 12, 2024
1 parent 64db250 commit 1cd061d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ class HardwareInterface {
public:
virtual bool init() = 0;

virtual void read(const rclcpp::Time &t, const rclcpp::Duration &dt) {};
virtual void read(const rclcpp::Time &t, const rclcpp::Duration &dt){};

virtual void write(const rclcpp::Time &t, const rclcpp::Duration &dt) {};
virtual void write(const rclcpp::Time &t, const rclcpp::Duration &dt){};

virtual void restoreAfterPowerCycle() {};
virtual void restoreAfterPowerCycle(){};

virtual ~HardwareInterface(){};
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ PressureConverter::PressureConverter(rclcpp::Node::SharedPtr nh, char side) {
}
for (int i = 0; i < 4; i++) {
std::stringstream single_wrench_frame;
single_wrench_frame << side << "_" << "cleat_" << wrench_topics[i];
single_wrench_frame << side << "_"
<< "cleat_" << wrench_topics[i];
wrench_frames_.push_back(single_wrench_frame.str());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ class RobotMotionModel : public particle_filter::MovementModel<RobotState> {

double sample(double b) const;
};
}; // namespace bitbots_localization
}; // namespace bitbots_localization
#endif // BITBOTS_LOCALIZATION_MOTIONMODEL_H
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,5 @@ void ImportanceResamplingWE<StateType>::resample(const ParticleList &sourceList,
// template <class StateType>
// void ParticleFilter<StateType>::drawAllFromDistribution(const
// std::shared_ptr<StateDistribution<StateType>>& distribution) {
}; // namespace bitbots_localization
}; // namespace bitbots_localization
#endif // IMPORTANCERESAMPLINGWE_H
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ class Map {
private:
double out_of_map_value_;
};
}; // namespace bitbots_localization
}; // namespace bitbots_localization
#endif // BITBOTS_LOCALIZATION_MAP_H

0 comments on commit 1cd061d

Please sign in to comment.