ROS2 publish posestamped bug. pose dont change, Wrong doc or I use it wrong?

5.1.0

Operating System

Ubuntu 22.04
GPU Information

  • Model: 5070ti
  • Driver Version: 570.144

Topic Description

ROS2 publish posestamped topic, when move turtlebot in sim. Pose dont change, Wrong doc or I use it wrong?

Detailed Description

I use this doc to publish posestamped ros2 topic.

when run the simulation, I use teleop_keyboard to move trim robot, but the posestamped topic pose dont change, time goes as it should be.
no matter how I move the robot, the topic pose position stay the same as it started.
how to publish make topic pose position change in simulation?