Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is the turtlebot3 example supposed to be graphical? #369

Closed
MatthewCroughan opened this issue Mar 6, 2024 · 2 comments
Closed

Is the turtlebot3 example supposed to be graphical? #369

MatthewCroughan opened this issue Mar 6, 2024 · 2 comments

Comments

@MatthewCroughan
Copy link
Contributor

I have little experience with ROS, but I wanted to check out one of your examples, so I did the following

Terminal 1

user: matthew nix-ros-overlay on  develop 
❯ nix develop .#example-turtlebot3-gazebo

user: matthew nix-ros-overlay on  develop via ❄️  impure (nix-shell-env) 
❯ roslaunch turtlebot3_gazebo turtlebot3_world.launch
... logging to /home/matthew/.ros/log/8ea6a3bd-dba6-11ee-8edd-f875a479a5f8/roslaunch-t480-652383.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

Terminal 2

user: matthew nix-ros-overlay on  develop 
❯ nix develop .#example-turtlebot3-gazebo

user: matthew nix-ros-overlay on  develop via ❄️  impure (nix-shell-env) 
❯ roslaunch turtlebot3_teleop turtlebot3_teleop_key.launch
... logging to /home/matthew/.ros/log/99595d15-dba6-11ee-b417-f875a479a5f8/roslaunch-t480-652481.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

But nothing graphical appears? Am I supposed to use rviz2?

If I add rviz2 to the devshell, I end up with the following aborted core

rviz2 
[INFO] [1709723102.578189725] [rviz2]: Stereo is NOT SUPPORTED
[INFO] [1709723102.578322409] [rviz2]: OpenGl version: 4.6 (GLSL 4.6)
[ERROR] [1709723102.612805321] [rviz2]: RenderingAPIException: Invalid parentWindowHandle (wrong server or screen) in GLXWindow::create at /build/rviz-release-release-humble-rviz_ogre_vendor-11.2.11-1/build/ogre-v1.12.1-prefix/src/ogre-v1.12.1/RenderSystems/GLSupport/src/GLX/OgreGLXWindow.cpp (line 257)
terminate called after throwing an instance of 'std::runtime_error'
  what():  Unable to create the rendering window after 100 tries
Aborted (core dumped)
@MatthewCroughan
Copy link
Contributor Author

Maybe relates to #343 (comment)

@lopsided98
Copy link
Owner

e239e71

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants