Hot answers tagged

5 votes

Alternatives to Kalmam Filter

A good choice for sensor fusion with the MPU6050 is a second order complementary filter, which I used for the orientation estimation in a project. The complementary filter is computational cheap and ...
HansPeterLoft's user avatar
4 votes
Accepted

Noisy magnetometer data

First, let's look at if your findings seem reasonable given the datasheet specifications for the sensor. For this, I'll assume that Wikipedia is generally correct and that the strength of Earth's ...
Chuck's user avatar
  • 15.9k
4 votes
Accepted

Complimentary filter issues

There are quite a few things wrong here. I'll split them into two sections: technical errors, and coding warnings. Technical Errors: You are not calculating your angles from accelerometer readings ...
Chuck's user avatar
  • 15.9k
4 votes
Accepted

How to use a POMDP-based planner on top of a probabilistic filter

I have used POMDP like models on top of a localization algorithm (Adaptive Monte Carlo Localization, from ROS), and a person detector [1][2] to find and follow a person with a humanoid robot. These ...
agold's user avatar
  • 260
3 votes

Smooth step function Simulink

There are a variety of functions that can give you an "S" curve like you want. Check out the Sigmoid function. I usually use something like this: $f(x) = \frac{x}{\sqrt{1+x^2}}$ And it can ...
Ben's user avatar
  • 5,825
3 votes
Accepted

How to produce a continuous variation of a discontinuous function?

It happens many times that set-points fed in our systems do change in a step-wise manner. Your intuition of filtering those variations is correct and represents a common practice. Here I'd give two ...
Ugo Pattacini's user avatar
3 votes

Filtering angular velocity spikes of a cheap Gyroscope

You gave the part number and protocol, but Can you provide a schematic for how this is installed in a circuit? Are you using the module or an individual chip? Is this all soldered together or is it ...
Chuck's user avatar
  • 15.9k
2 votes
Accepted

Gyroscope - How can I remove low frequency component with a high pass filter only?

:UPDATED: This is the last update I'm going to make to this answer because I feel like you are repeatedly redefining your question. You have already designed a Butterworth filter that removes the DC ...
Chuck's user avatar
  • 15.9k
2 votes
Accepted

Filtering IMU angle discontinuities

Here are my two suggestions for dealing with this problem: Use a median filter, which replaces each value of your signal with the median of the values in a small window around each one. Here is some ...
Brian Lynch's user avatar
  • 1,377
2 votes

Alternatives to Kalmam Filter

Particle filters (epecially in Monte Carlo localization) always seemed easy to intuitively understand to me. You basically simulate bunch of possible states of your robot, rank them with probabilities ...
cube's user avatar
  • 729
2 votes
Accepted

How to update an EKF when no inputs are available?

You can use the last value $u_{t-1}$ if the time step is not too big ($\delta t$ is small). Or, you can keep track of $u$ some time steps in the past, e.g. ten of them and extrapolate $u_t$ when you ...
Luis's user avatar
  • 163
1 vote

Smooth step function Simulink

So you could use the ramp block, but that only has a turn-on time and a slope; there's no limiting it once it's turned on. What I prefer to use instead is the repeating sequence block, which lets you ...
Chuck's user avatar
  • 15.9k
1 vote

Does the Bayes-Filter perform a convolution in the prediction step?

See this nice tutorial: https://github.com/rlabbe/Kalman-and-Bayesian-Filters-in-Python/blob/master/02-Discrete-Bayes.ipynb Using a Bayesian derivation for filtering, the prediction step can be seen ...
Luca's user avatar
  • 11
1 vote
Accepted

UKF for a serie of observations with covariance

It seems that since your "measurements" are just deltas in the state, they should really be considered your control inputs. Intuitively, measurements are supposed to reduce the variance in ...
Alex's user avatar
  • 449
1 vote

Sparcification of SLAM with SEIF (Sparse Extended Information Filter)

I still couldn't derive it, but maybe I could prove it thanks to willSapgreen. Information matrix of distribution $p(x_t, Y^+, Y^0|Y^-=0)$ is $H_t'$; $$H_t'=S_{x_t,Y^+,Y^0}S^T_{x_t,Y^+,Y^0}H_tS^T_{x_t,...
buzz's user avatar
  • 11
1 vote

How can we calculate likelihood of sensor values wrt to actual real world?

The likelihood is with respect to your predicted state not the world state (You will never know the world state) For example, if you predict you will be at [0,0] but the measurement tells you [.5,.5] ...
Octopuscabbage's user avatar
1 vote

GNSS Dead Reckoning -- Sensor Fusion Filter not necessary?

Question Is it necessary to use any filter to fuse Ublox ZED-F9K's GNSS and IMU/Odometry data? Answer My answer is NO, for the following reasons: (1) GNSS and IMU are independently developed modules ...
tlfong01's user avatar
  • 111
1 vote
Accepted

In a discrete bayes filter, why is noise in the sensor treated differently than noise in the motion

The reason the two sources of error are treated differently is because.. they are different. To some extent, this is a matter of terminology. Imagine you're walking in a room where the lights keep ...
HighVoltage's user avatar
  • 1,096
1 vote
Accepted

Implementing ESKF

After some work I got it working. You can find the C++ source code on github. Don't use the python code in the question. It has some flaws. In the end I just abandoned the gyro drift (I would argue ...
hobbeshunter's user avatar
1 vote

Complementary filter for gyroscope and accelerometer

First I 'll try to answer to your second question. So from the gyroscope you get the angular velocity (without any computation). The drift is produced when you integrate. To be more clear in each ...
nionios's user avatar
  • 311
1 vote
Accepted

Why information filter called information filter

I think the answer is that a covariance matrix represents uncertainty. As its singular values grow, uncertainty grows as well. On the other hand, if you look at its inverse you see (of course) the ...
U.Nusbaum's user avatar
1 vote

Tracking vehicle 6 states extended kalman filter required?

there is some error in your matrix I think. P(k+1)=V(k) And V(k+1)=A(k) so I don't kwon what is the A(k+1) maybe the jerk(jolt) of the vehicle.
dikay97's user avatar
  • 11
1 vote
Accepted

Tracking vehicle 6 states extended kalman filter required?

If you can write the dynamics with a matrix, which you have, then a normal kalman filter will be best. However, your measurements will probably be nonlinear. You will find that you won't be able to ...
holmeski's user avatar
  • 1,843
1 vote

How to implement RANSAC and kalman filter or particle filter algorithms with ROS packages?

Like with anything in engineering, you first need a good definition of what "success" (or "done") means. SLAM running how fast? Under what particular lighting and environmental conditions? Using what ...
Jon Watte's user avatar
  • 720
1 vote

Alternatives to Kalmam Filter

Want to get orientations from accelerometers and gyroscopes? Use the Madgwick filter. From the paper, "Results indicate the filter achieves levels of accuracy exceeding that of the Kalman-based ...
Chuck's user avatar
  • 15.9k
1 vote

Alternatives to Kalmam Filter

Check this website pratical approach to kalman filter it will give you a comprehensive description of kalman filter for a balancing robot (like yours) both theoritical and pratical (you have the code ...
fabrice's user avatar
  • 121
1 vote

Bayesian filter for 2-D grid localizaton

I can give you some leads and you can probably take it from there. Since you mention calculating "the probability of the robot present in each of the grid cell", what you want to do is essentially a ...
al-dev's user avatar
  • 331
1 vote
Accepted

P gain tuning for quadcopter (Is my perception for a P-gain too high correct?)

:EDIT: I've edited out most of the content I had previously written because your code does work (except for the mis-matched parenthesis), but it threw me off because this is not really a ...
Chuck's user avatar
  • 15.9k
1 vote

Filtering angular velocity spikes of a cheap Gyroscope

One of the options is to utilize the exponential moving average. The below picture shows data corrupted by Gaussian noise with zero mean and 0.4 variance and how the filter does a good job to remove ...
CroCo's user avatar
  • 2,453
1 vote
Accepted

Filtering angular velocity spikes of a cheap Gyroscope

Did you try out median filtering? This nonlinear technique is suitable to counteract the presence of spikes while preserving the high frequency content of the input signal.
Ugo Pattacini's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible