I believe you need to actually start doing some research. Google is your friend. I feel that you don't really know much about the subject of what you want to achieve. We can't do the entire problem analysis for you.
First, MPU-6050 is an accelerometer and a gyroscope in one package. So you can use any sensor fusion algorithm you want (Kalman filter, complementary filter, Extended Kalman filter, cosine matrix ...), you don't have to use the DMP code from Invensense. There are plenty of examples for this line of chips online, including e.g. the complete Oculus Rift tracker which used MPU-6050 and an external Honeywell magnetometer.
Second, you don't seem to realize that in order to have yaw, you will need an external magnetometer or some other way of compensating the gyroscope drift in yaw (e.g. a camera or some optical sensor). MPU-6050 alone will not do it because it lacks the sensor, so you will always have drift in yaw. The later MPU-9150 and MPU-9250 integrate a magnetometer as well, with the latter being a bit better. The Bosch device mentioned does as well.
Third, "creating opposite force" - I am not sure what you mean, really. These chips allow you to measure orientation in space and related quantities (angular velocity/acceleration) and possibly linear acceleration. That may or may not be enough to do what you want - but without knowing more about your project it is impossible to help you. These parts have been used for self-balancing robots, so at least something similar is possible. Again, Google is you friend.