Skip to content

Commit f3ec49a

Browse files
committed
Fix invalid cpp20 template argument
1 parent c1f95ae commit f3ec49a

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/lib/particle_filter/include/particle_filter/ImportanceResampling.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ImportanceResampling : public ResamplingStrategy<StateType> {
3131
/**
3232
* The constructor of this base class inits some members.
3333
*/
34-
explicit ImportanceResampling<StateType>(bool reset_weights = false, double particle_reset_weight = 0);
34+
explicit ImportanceResampling(bool reset_weights = false, double particle_reset_weight = 0);
3535

3636
/**
3737
* The destructor is empty.

src/lib/particle_filter/include/particle_filter/Particle.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Particle {
2727
* @param state The initial state of the particle
2828
* @param weight The initial weight of the particle
2929
*/
30-
Particle<StateType>(const StateType& state, double weight);
30+
Particle(const StateType& state, double weight);
3131

3232
/**
3333
* The destructor is empty.

src/lib/particle_filter/include/particle_filter/ParticleFilter.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ class ParticleFilter {
189189
* @param os ObservationModel to use for weighting particles
190190
* @param ms MovementModel to use for propagation of particles
191191
*/
192-
ParticleFilter<StateType>(unsigned int numParticles, std::shared_ptr<ObservationModel<StateType>> os,
192+
ParticleFilter(unsigned int numParticles, std::shared_ptr<ObservationModel<StateType>> os,
193193
std::shared_ptr<MovementModel<StateType>> ms);
194194

195195
/**

src/lib/particle_filter/include/particle_filter/StateDistribution.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class StateDistribution {
2727
/**
2828
* The constructor of this base class is empty.
2929
*/
30-
StateDistribution<StateType>();
30+
StateDistribution();
3131

3232
/**
3333
* The destructor is empty.

0 commit comments

Comments
 (0)