### When I write the rotation matrix I get the opposite result of a sensor in Robotran. How is it possible?

You should check the convention that you are using to write your rotation matrix. The convention used in Robotran is described in Robotran Basics (see here).