[3.3.2] [TF ROS2] - Turtle does not move when Static Broadcaster through Python script

The Turtle does not move after executing:
ros2 run my_tf_ros2_course_pkg static_broadcaster_front_turtle_frame.py turtle_chassis my_front_turtle_frame 0.4 0.0 0.4 0.0 0.7 3.1416

This only happened in Python script, if I use Launch file, the TurtleBot and cam_bot are moved fine.

I have made sure to execute “source ~/ros2_ws/install/setup.bash” in every new terminal.

Hello @PhongNguyen,

the turtle will not move by itself. You must send a command to the turtle in order for it to start moving.

You can do so for instance running teleop_twist_keyboard like so:

ros2 run teleop_twist_keyboard teleop_twist_keyboard --ros-args --remap cmd_vel:=/turtle_cmd_vel

Please let me know if this solves your problem.



This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.