Rotate Kinect frame for turtlebot localization? [closed]
Hello !
I'm currently working on SLAM method with turtlebot2. I followed all tutorials about mapping and localization and everything works well.
But I'd like to add some more features: my kinect is actually not directly fixed to the turtlebot but it's mounted on a Dynamixel Motor to allow a rotation on the Z axis.
So my problem is that the localization is well working when the kinect frame is aligned with the turtlebot frame (the Kinect orientation on the vertical axis is the same as the turtlebot's one) but as soon as the orientations are not the same, I have a problem in the localization. This is pretty normal but I'd like to allow the Kinect to rotate and still have a good localization.
In theory, I "just" have to apply a rotation matrix between the Kinect frame and the turtlebot frame depending on the Dynamixel angle but I have honestly no idea how to apply this transformation...
I had a look on tf tutorials and I did the tutorials tf tutorials but I'm quite locked here.
So my questions are:
How can I apply the theoretical rotation matrix between Kinect frame and Turtlebot frame?
Where should I implement the rotation transformation between the frames (because there are not a lot of files in turtlebot_navigation folder)?
Is it possible to update the angle for the rotation transformation as often as the motor angle changes?
Let me know if wasn't clear in my explanations.
Thank you for your answers and your advices!