when i type in rqt_graph i get the error: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. But i used Xlaunch and the turtlesim functions correctly. But when i type in rqt_graph, i get the above error. Do you have maybe an idea why?
Hi, I have been following a few of your videos to really wrap my head around the workings of ROS using turtlesim. I must say your videos are really good and have helped me a lot these last few weeks so a big thank you for your efforts and commitment. I have a question though. I have spawn two turtles and I am trying to move a specific turtle to a specific location. I have gone through the go2goal tutorial and I understand we need just two parameters and threshold to move the turtle so like in your video, ```linear velocity in x```, ```angular velocity in z``` and the threshold (i.e. when to stop usually a distance). My challenge is that I am trying to get the position of turtle1 and then use that to calculate the distance, lin_vel.x and ang_vel.z with which turtle2 has to travel. I have written a subscriber function to turtle1 but I want to assign the the x and y positions of turtle1 to a variable that I can use in the move function for turtle2. I may be struggling due to my beginner level python skills or maybe a poor understanding of how node, topics, subsribers work. Any help will be appreciated. I can show you the code I have written.
Hello, everytime I want to run a ros command(rosrun, rostopic, etc.) in a new window, the terminal tells me to install rosbash first(apt install rosbash), for which I have to go to root directory to do so. Everything is working fine, but is there a way around having to use the root deirectory everytime?
share the picture on discord server so we can debug it . on top of my head it is regarding source to ros installation . You can put it into bashrc file then it gets automatically sourced.
Hi Luqman, I have run this 1. # rosrun turtlesim turtlesim_node qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb. 2. export QT_QPA_PLATFORM=offscreen export XDG_RUNTIME_DIR=/some/directory/you/specify export RUNLEVEL=3 source .bashrc 3. # rosrun turtlesim turtlesim_node QStandardPaths: XDG_RUNTIME_DIR points to non-existing path '/some/directory/you/specify', please create it with 0700 permissions. [ INFO] [1672405618.508857089]: Starting turtlesim with node name /turtlesim [ INFO] [1672405618.513468860]: Spawning turtle [turtle1] at x=[5.544445], y=[5.544445], theta=[0.000000] but haven't got anything on display as you got turtlesim on your screen. how to get visulisation or display
when i type in rqt_graph i get the error:
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
But i used Xlaunch and the turtlesim functions correctly. But when i type in rqt_graph, i get the above error. Do you have maybe an idea why?
Virtual desktop issues , but needs diving deep as tbsim is displayed and this qt based graph is not . Never Experienced with that .
Hi, I have been following a few of your videos to really wrap my head around the workings of ROS using turtlesim. I must say your videos are really good and have helped me a lot these last few weeks so a big thank you for your efforts and commitment. I have a question though.
I have spawn two turtles and I am trying to move a specific turtle to a specific location. I have gone through the go2goal tutorial and I understand we need just two parameters and threshold to move the turtle so like in your video, ```linear velocity in x```, ```angular velocity in z``` and the threshold (i.e. when to stop usually a distance).
My challenge is that I am trying to get the position of turtle1 and then use that to calculate the distance, lin_vel.x and ang_vel.z with which turtle2 has to travel. I have written a subscriber function to turtle1 but I want to assign the the x and y positions of turtle1 to a variable that I can use in the move function for turtle2.
I may be struggling due to my beginner level python skills or maybe a poor understanding of how node, topics, subsribers work. Any help will be appreciated. I can show you the code I have written.
you have to write a subscriber for topic "turtle1/pose" which tells you about location and position of turtle1 then manipulate it
how can i use ros2 with arduino mega for serial
Use Micro-ROS Serial
I want to write a code in python for turtle to 2 rotation, radius 2, speed 3
Will you please help me
Sure
@@robotisim will you please write the code for me in comment
I shall be grateful to you
Hello, everytime I want to run a ros command(rosrun, rostopic, etc.) in a new window, the terminal tells me to install rosbash first(apt install rosbash), for which I have to go to root directory to do so. Everything is working fine, but is there a way around having to use the root deirectory everytime?
share the picture on discord server so we can debug it .
on top of my head it is regarding source to ros installation . You can put it into bashrc file then it gets automatically sourced.
verry helpfull
Glad to hear that
Hi Luqman, I have run this
1. # rosrun turtlesim turtlesim_node
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
2. export QT_QPA_PLATFORM=offscreen
export XDG_RUNTIME_DIR=/some/directory/you/specify
export RUNLEVEL=3
source .bashrc
3. # rosrun turtlesim turtlesim_node
QStandardPaths: XDG_RUNTIME_DIR points to non-existing path '/some/directory/you/specify', please create it with 0700 permissions.
[ INFO] [1672405618.508857089]: Starting turtlesim with node name /turtlesim
[ INFO] [1672405618.513468860]: Spawning turtle [turtle1] at x=[5.544445], y=[5.544445], theta=[0.000000]
but haven't got anything on display as you got turtlesim on your screen. how to get visulisation or display
Linux or windows ?
@@robotisim it’s window 11
I have installed ROS noetic based on your first video
@@yyjadeja problem is with gui application. Search for docker gui on win 11 any other tutorial
@@robotisim ok will try and let you know if problem solve. Thanks, your videos are such a lifesaver for beginners.
rostopic pub /turtle1/cmd_vel geometry_msgs/Twist "linear:
Why can't I get output when I write this? Everything I do is like you do.
source /opt/ros//setup.bash
it is not getting autocomplete after pressing tab
@@dmtschulz
@@robotisim it is not getting autocomplete after pressing tab
@@vishalkumawat2266
What is not completing?
If it is about packages
then the package doesnot exits or sourcing is not done