Questions tagged [turtlesim]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
16 views

Turtlesim: Stop after one turn. Subscriber way faster than the Publisher

I am interested in drawing one circle with the turtlesim. However the subscriber is retrieving the pose way faster than the publishers moves the turtle. This is the code that I came up with: ...
p10's user avatar
  • 5
0 votes
0 answers
7 views

#Windows# Issue with tf2_ros::MessageFilter Tutorial on Windows

I am a beginner with ROS 2 and I was following the Using stamped datatypes with tf2_ros::MessageFilter tutorial on a Windows machine. I have encountered an issue in the 3 Run section. When I run ...
Eric's user avatar
  • 1
0 votes
0 answers
19 views

how to draw something using a turtlesimbot and stop that bot, spawn another turtlesimbot at that coord, and draw using the 2nd bot?

...
Anonymous's user avatar
0 votes
1 answer
100 views

How can the ROS 2 TurtleSim turtle icon be changed?

In the turtlesim program used in many ROS 2 tutorials, there is a turtle icon that can be controlled. I would like to change this icon to be a different image that I have been provided, so that when I ...
Kaushal Bhanderi's user avatar
1 vote
1 answer
225 views

how to use the rate.sleep function properly

So I have a task of making turtle sim draw a heart using parametric equations I don't know if all my equations are correct but here's my code ...
Ahmed Sallam's user avatar
0 votes
1 answer
6 views

ros2 how to make turtlesim use the same turtle every time?

when launching turtlesim I usually get a different looking turtle bot every time, probably it's random. Is there some variable I can use to make turtlesim use the same specific turtle every time ? ...
user avatar
0 votes
1 answer
4 views

ROS Action with no Subscriber

Iam creating an action server and the process is just rotating turtlesim depending on how many times the goal is set to. As far as I researched, the sample codes for ROS Action have their main ...
user avatar
0 votes
1 answer
3 views

How to have random number every node run

Im using this rand() function on my code. When I first run the node, it gives me random number, but when I run the node again, it gives me the previous random number. I applied this code on turtlesim/...
user avatar
0 votes
1 answer
6 views

ROS Service (client inside server node)

Is it possible to put a client node inside a server node when making service? Iam trying to make a Service and as far as I know, all the functions are stored in the server node and inside the client ...
user avatar
0 votes
1 answer
2 views

Publishing data from Spacenav node to other topics

Hello! I'm working on a small teleoperation program (currently only for the turtlesim and afterwards for an UR5e robot arm) using a Spacenav 3dconnexion joystick and I'm trying to figure out how to ...
user avatar
0 votes
2 answers
28 views

How to find the source code for a ROS 2 package, say, turtlesim?

I see that ROS2 tutorials uses turtlesim, but where is the source code (on Github) for the ROS2 turtlesim package? The one on GitHub seems to target ROS1 or maybe I am wrong. Originally posted by ...
user avatar
0 votes
1 answer
16 views

rosrun turtlesim turtlesim_node error while loading shared libraries

Hi, i'm trying to learn ROS and I am following the tutorial http://wiki.ros.org/it/ROS/Tutorials/UnderstandingNodes. When I reach part 1.7 I use rosrun but it returns an error: ...
user avatar
0 votes
1 answer
8 views

Error in /opt/ros/melodic/include/ros/ros.h

Hi, I'm trying to read user input from keyboard, inspired by turtlesim. When I compile I get this error: ...
user avatar
0 votes
1 answer
6 views

export ROS_HOSTNAME, ROS_MASTER_URI configuration problem

Hello all, I was trying all day to figure out why my cmd won't accept my arrow keys as input for the turtlesim example. At first I though there was some configuration problem with the shell I use (zsh)...
user avatar
0 votes
1 answer
4 views

Tutlesim GO2GOAL python code error : TypeError: unsupported operand type(s) for -: 'str' and 'float'

I tried the following code from Turtlesim tutorial (GO TO GOAL): ...
user avatar
0 votes
1 answer
2 views

vel_msg not declared in scope using turtlesim geometry_msgs

I'm following a beginner turtlesim tutorial to make a simple move node. It seems that geometry_msgs cmd_vel is not being found despite being in my CMakeList.txt and package.xml ...
user avatar
0 votes
1 answer
8 views

Error running Turtlesim noetic

Good Afternoon All, I am going through the tutorial at : http://wiki.ros.org/ROS/Tutorials/UnderstandingNodes. I ran the command : rosrun turtlesim turtlesim_node and it generated the error : /opt/...
user avatar
0 votes
1 answer
56 views

qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""

ROS 2 tutorial, Introducing turtlesim and rqt, instructs us to execute the following commands in two cmd windows (I am exercising on Windows 10 platform), ...
user avatar
0 votes
1 answer
12 views

Question regarding ROS(turtlesim).Moving one turtle towards another turtle

I want to write a python node such that it subscribes to relevant topics and publishes to relevant topics to make default 'turtle1' at (5.444,5.444) move towards a newly spawned turtle 'blah' at (X1, ...
user avatar
0 votes
1 answer
1 view

Trouble logging uint8 message fields

...
user avatar
0 votes
1 answer
21 views

Does anyone know where i can find source code of turtlesim package?

I want to understand how this simple simulator works. I can't find any good explanation. For example, in ros_tuturials they say: run roscore rosrun turtlesim turtlesim_node rosrun turtlesim ...
user avatar
0 votes
1 answer
1 view

tutrlesim_node fails due to incompatible Qt library

Hello, I am new to ros, and currently following the beginners tutorials. I installed ros melodic on Ubuntu 18.04 and followed the instructions up to section 7 in http://wiki.ros.org/ROS/Tutorials/...
user avatar
0 votes
2 answers
3 views

How to control turtlesim by a publisher data sent by arduino rosserial

I'm noob in ROS, and i used this aduino code to send Float64 data to ros ...
user avatar
0 votes
3 answers
225 views

Formatting ROS data to .csv file

I created a Rosbag of turtlesim data and would like to export the x and y coordinates only to a .csv file. Right now, however the formatting is as such: ...
user avatar
0 votes
1 answer
5 views

In the turtlesim tutorial "Moving in a straightline", which instructions actually move the turtle?

I am reading the turtlesim tutorial "Moving in a straightline". http://wiki.ros.org/turtlesim/Tutorials/Moving%20in%20a%20Straight%20Line I do not understand how the software moves the ...
user avatar
0 votes
1 answer
1 view

ROS Answers SE migration: ros2 turtlesim

Hi, I wonder whether there will be soon a package for turtlesim on ROS2. I downloaded bouncy, but there is no turtlesim package. Also, is there any robot simulator in current ROS2 packages? When it ...
user avatar
0 votes
1 answer
2 views

Why can I import from a package which is not part of my dependencies?

I created a ROS package, my_package, with dependencies rospy and geometry_msgs. Then I ...
user avatar
0 votes
1 answer
51 views

How to change color of turtlesim background using python code

Hi, guys, I'm trying to publish data to turtlesim color_sensor that is trying to display different colors my problem is it publishing data but it's not working. I did call $ rosservice call /clear ...
user avatar
0 votes
1 answer
1 view

python syntax error for rosrun .py script

Hello I'm a noob at python, I downloaded this github package (turtlesim_hunter) Then when I rosrun I get a syntax error: ...
user avatar
0 votes
1 answer
5 views

Mouse Teleop TurtleSim

To whom it may concern, I have managed to work turtlesim with the turtlesim_teleop_node using a keyboard but require to turn using mouse control. i have tried to find the method and cannot find one on ...
user avatar
0 votes
1 answer
9 views

Question on turtlesim tutorial: Go to Goal

Hello, I am new to ROS and I am trying to implement the Go to Goal tutorial in C++ (the tutorial itself is in python but wanted to implemented it in C++). The part I am having trouble understanding is,...
user avatar
0 votes
1 answer
2 views

something is wrong when i run turtlesim_node

I am a beginner, I am learning ROS.org I use the ‘indigo’ version when i run this "rosrun turtlesim turtlesim_node" The screen display [ERROR] [1505802741.783016851]: [registerPublisher] ...
user avatar
0 votes
1 answer
2 views

Calculating distance using linear velocity and time

The general simplest approach in ROS is to calculate the distance by multiplying the time elapsed with the linear velocity. As can be seen from this link http://wiki.ros.org/turtlesim/Tutorials/Moving%...
user avatar
0 votes
1 answer
7 views

Using turtlesim

I'm thinking about simulating a ROS robot running a maze. I thought of using TurtleSim instead of Gazebo because: it is lighter weight with only 2d, and I would be able to define the maze in two ...
pitosalas's user avatar
  • 463
0 votes
1 answer
1 view

Qxcb connection on rosrun turtlesim

Hi all, I am following the beginner rosnode tutorial http://wiki.ros.org/ROS/Tutorials/UnderstandingNodes I have installed ros in bash. When I enter command "rosrun turtlesim turtlesim_node" ...
user avatar
0 votes
1 answer
2 views

Cannot communicate/ping the turtlesim

I am going through the tutorials and have reached point of using the turtlesim for learning about nodes, etc. I am trying to ping the turtlesim node, but there is no communication with the turtlesim. ...
user avatar
0 votes
1 answer
4 views

Joystick operation for a gazebo ros youbot

Hi everyone, I have created a node just like teleop_joy using ros.org. It publishes a topic /joy and the type of message is sensor_msgs/Joy. My youbot has a topic /cmd_vel and the type of message is ...
user avatar
0 votes
1 answer
2 views

[roslibjs,rosbridgesuite] How to get data back from the robot in turtleSim

According to the roslibjs documentation, we should be able to get the data back from the robot by using a listener: ...
user avatar
0 votes
2 answers
4 views

Where is the source code of installed packages?

I have installed ROS Kinetic and it sits is the /opt/ros/kinetic/ folder which has the following structure: ...
user avatar
0 votes
1 answer
10 views

rosrun cannot find executables under turtlesim

I know this question has been asked many times, but I really wanted to understand what was wrong with my commands and environment setup. I tried solutions from other sources but none worked in my case....
user avatar
0 votes
1 answer
3 views

rospy.ServiceProxy( ) is not working

Hi there, I am incredibly new to ROS, and I am trying to learn by creating a program with turtlesim. I am currently writing a node that will call turtlesim's Spawn service, and I am getting an ...
user avatar
0 votes
1 answer
1 view

Weird rqt_graph when running turtlesim

I am going through the ROS tutorials and on the "Understanding Topics" tutorial in section 1.2.1 when I launch rqt_graph I get this image: It should be ...
user avatar
0 votes
1 answer
5 views

how to control the turtlesim_node through "turtlesim/TeleportAbsolution" in my own package

Hi, all I learnt from the ros_tutorials wiki page that the turtlesim_node can be controlled by running the following command in shell: "rosservice call /turtle1/teleport_absolute 5 5 0" I ...
user avatar
0 votes
1 answer
1 view

I got some problem

dear all, I want to run a simple example like this sony@sony-virtual-machine:~$ rosrun turtlesim turtlesim_node[ERROR] [1429091431.360422919]: [registerPublisher] Failed to contact master at [...
user avatar
0 votes
1 answer
1 view

Sleeping thread after publishing a message into a topic

Hi, I've been using rosbridge and jroslib as an API to it. Testing the jroslib with the turtlesim, to publish messages I'm finding some errors. I have to use Thread.sleep(500) to the thread sleep so ...
user avatar
0 votes
1 answer
1 view

turtlesim_node: cannot connect to X server

rosrun turtlesim turtlesim_node turtlesim_node: cannot connect to X server what is the problem? help please Originally posted by Ainur on ROS Answers with karma: 3 on 2015-01-28 Post score: 0
user avatar
0 votes
1 answer
19 views

cant move turtle in turtlesim with key inputs

I am trying to go through the tutorial. I am on " Understanding ROS Topics". I can get the turtlesim open but when I try to move the turtle, nothing happens. No, keyinputs appear in the ...
user avatar
0 votes
1 answer
1 view

Topic not being created properly

Hello, I am using ROS groovy and I have created a .cpp file that is suppose to use the command_velocity topic in conjunction with ros turtlesim to move the simulated turtlebot in a direction, When I ...
user avatar
0 votes
1 answer
3 views

tf/tutorials/adding a frame

After I run the problem, all I can see and do is to move turtle1 turtle2 is always stationary no matter where I moved my turtle1. Is there anything I miss doing ? I am running in groovy. Thank you ...
user avatar
0 votes
1 answer
15 views

Problem of running "rosrun turtlesim turtlesim_node"

Hey guys, I am new to ros and try to learn it by going through the beginner tutorial. However, when I tried typing the code "rosrun turtlesim turtlesim_node" provided in "...
user avatar