mitchellspryn / UrdfSim

Other
102 stars 25 forks source link

simSetObjectPose transforms the object pose wrong #57

Open anilzeybek opened 2 years ago

anilzeybek commented 2 years ago

When I get the object pose with the simGetObjectPose, it is correct and the same as the location coordinates in Unreal Engine. However, when I try to set the object pose it ends up being in a different location. Even when I do the following, the position changes, which I think it should stay:

current_pose = self.airsim_client.simGetObjectPose(object_name)
self.airsim_client.simSetObjectPose(object_name, current_pose)

Or when set the object's pose to a new pose twice, the second transform shouldn't affect, but it does and rotation slightly changes