MCPcopy Create free account
hub / github.com/RoboJackets/software-training / MotionModel

Class MotionModel

localization/src/motion_model.hpp:35–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33{
34
35class MotionModel
36{
37public:
38 explicit MotionModel(rclcpp::Node & node);
39
40 void updateParticle(Particle & particle, double dt, geometry_msgs::msg::Twist::SharedPtr cmd_msg);
41 void updateParticles(
42 std::vector<Particle> & particles,
43 geometry_msgs::msg::Twist::SharedPtr cmd_msg,
44 rclcpp::Time current_time);
45 bool getEnabled(const rclcpp::Time & time);
46
47private:
48 Particle sigmas_;
49 rclcpp::Time last_message_time_;
50 GaussianRandomGenerator gaussian_noise_;
51};
52
53} // namespace localization
54

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected