ros / ros_tutorials

Code used in tutorials found on ROS wiki
http://wiki.ros.org/ros_tutorials
805 stars 540 forks source link

[Rolling] Cannot use turtle_teleop_key arrow keys #117

Closed sloretz closed 3 years ago

sloretz commented 3 years ago
$ apt show ros-rolling-turtlesim
Package: ros-rolling-turtlesim
Version: 1.3.1-3focal.20210413.161614
Priority: optional
Section: misc
Maintainer: Mabel Zhang <mabel@openrobotics.org>
Installed-Size: 3457 kB
Depends: libc6 (>= 2.14), libgcc-s1 (>= 3.0), libpython3.8 (>= 3.8.2), libqt5core5a (>= 5.12.2), libqt5gui5 (>= 5.2.0) | libqt5gui5-gles (>= 5.2.0), libqt5widgets5 (>= 5.0.2), libstdc++6 (>= 9), ros-rolling-fastcdr, libqt5gui5, ros-rolling-ament-index-cpp, ros-rolling-geometry-msgs, ros-rolling-rclcpp, ros-rolling-rclcpp-action, ros-rolling-rosidl-default-runtime, ros-rolling-std-msgs, ros-rolling-std-srvs, ros-rolling-ros-workspace
Homepage: http://www.ros.org/wiki/turtlesim
Download-Size: 409 kB
APT-Manual-Installed: yes
APT-Sources: http://packages.ros.org/ros2/ubuntu focal/main amd64 Packages
Description: turtlesim is a tool made for teaching ROS and ROS packages.

Steps to reproduce

In one terminal, launch turtlesim

$ ros2 run turtlesim turtlesim_node
QStandardPaths: XDG_RUNTIME_DIR points to non-existing path '/run/user/1000', please create it with 0700 permissions.

(process:1637229): Gtk-WARNING **: 16:08:22.656: Locale not supported by C library.
    Using the fallback 'C' locale.
QStandardPaths: XDG_RUNTIME_DIR points to non-existing path '/run/user/1000', please create it with 0700 permissions.
Qt: Session management error: None of the authentication protocols specified are supported
[INFO] [1618441702.681063611] [turtlesim]: Starting turtlesim with node name /turtlesim
[INFO] [1618441702.682450503] [turtlesim]: Spawning turtle [turtle1] at x=[5.544445], y=[5.544445], theta=[0.000000]
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

In another terminal, launch turtle_teleop_key

$ ros2 run turtlesim turtle_teleop_key
Reading from keyboard
---------------------------
Use arrow keys to move the turtle.
Use G|B|V|C|D|E|R|T keys to rotate to absolute orientations. 'F' to cancel a rotation.
'Q' to quit.

Use the arrow keys. The turtle does not move.

sloretz commented 3 years ago

User error, I had ROS_DOMAIN_ID set incorrectly in one of the terminals.