I am currently simulating a mobile robot, and I control its movements using the teleop keyboard node. Upon loading the robot model in both Gazebo and Rviz, the initial orientation appears consistent in both environments. However, when I initiate movement, I encounter a discrepancy in behavior.
In Gazebo, the robot moves along the y-axis, aligning with the expected motion based on wheel rotation. However, in Rviz, as I start moving the robot, it unexpectedly moves along the axis, which is the axis of rotation of the wheels.
Here are images illustrating the issue:
As you can see, robot moves along the y axis in Gazebo, whereas it moves along x axis in Rviz. There was a similar question previously,Unfortunately, I couldn't understand the specific changes needed in the URDF from that answer.

