Thank you very much Girish, I think there’s something wrong in my ws.
I’ve relaunched the gazebo, the result remains unchanged. I’ve tried pose.pose.position.x as well, no output on terminal.
The content of /odom topic:

I’ve posted the issue here: ERROR: cannot launch node of type
I've solved the issue:
Step 1: rosrun pkgname nodename to verify the node
Step 2: Confirm that catkin_package(...) & include_directories(...) are placed before any executables
Step 3: catkin_make and source
Thanks for the reminder as well, the message_generation and catkin_package in CMakeLists.txt are intended for my custom message in another project.