ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Unable to move the turtle in turtlesim

asked 2021-11-15 05:44:22 -0500

akshnat gravatar image

This is a very simple question, and I have just started working with ROS2. I'm not getting errors but I'm unable to control the robot with my keyboard. I was going through the documentation here:

https://docs.ros.org/en/foxy/Tutorial...

and I'm currently stuck at 3 Use Turtlesim section. I'm running turtlesim under ADE, as I will be using Autoware in the future. any help is greatly appreciated :)

When I run the turtlesim_node I get the following:

ros2 run turtlesim turtlesim_node QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-akshaya-natarajan' 1636975713.582321 [2] turtlesim_: using network interface wlp0s20f3 (udp/10.240.240.164) selected arbitrarily from: wlp0s20f3, docker0, enx803f5d0609e9

edit retag flag offensive close merge delete

Comments

Are you using WSL or Virtualbox?

osilva gravatar image osilva  ( 2021-11-15 15:48:46 -0500 )edit

None, I'm using Linux 20.04

akshnat gravatar image akshnat  ( 2021-11-22 03:13:36 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-12-15 05:11:54 -0500

rodrigo55 gravatar image

Hi,

You might want to check the topic your are publishing to with the teleop command. If you add cmd_vel:=/turtle1/cmd_vel, can you move the turtle?

If you run into problems, I made this short video that explains how to do it: https://youtu.be/G2RxYwZuxJM

edit flag offensive delete link more

Question Tools

Stats

Asked: 2021-11-15 05:44:22 -0500

Seen: 904 times

Last updated: Dec 15 '21