Skip to main content

Questions tagged [turtlesim]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
22 views

turtlesim project- spawn three turtles and have them follow sine and cos wave

As the title say I have to spawn three turtles and have them follow y=5cosx and y=5sin(4x). I have tried it multiple times but always keep getting errors which I'm unable to solve. ...
Harry's user avatar
  • 1
0 votes
1 answer
20 views

How to simultaneously execute 2 turtlesims inthe same window

I have a simple turtlesim program with me and was trying to run it with roslaunch. I wanted to have 2 turtlesims in the same window and a common python script to execute both the new nodes created ...
ashwinjoseph's user avatar
1 vote
2 answers
44 views

How to resolve import error?

I created a simple publisher pkg to move around the turtle in turtlesim and getting this import error, let me know if you need any other information. Please correct me if I am doing anything wrong --&...
diysumit's user avatar
0 votes
1 answer
17 views

Could not give the Result part of the RotateAbsolute action for the turtlesim package of the humble distro

The interface of the RotateAbsolute action is defined as follows: ...
Yongxue Law's user avatar
2 votes
0 answers
19 views

Fixing the consensus algorithm code for ROS Noetic

The Python script below is about an implementation of the consensus algorithm (rendez-vous) using static Metropolis weights for Turtlesim in ROS Noetic, run in Ubuntu 20.04 OS. The issue is that the ...
Hong Christian Lin Jiang's user avatar
0 votes
0 answers
14 views

ROS turtlesim reporting turtle image spawn

ROS Melodic used at least 14 turtle images in turtle_frame https://github.com/ros/ros_tutorials/blob/melodic-devel/turtlesim/src/turtle_frame.cpp, is it possible to have ROS report which image is used ...
Marco LO's user avatar
0 votes
1 answer
53 views

Failed to set parameters using the service /turtlesim/set_parameters of the SetParameters type

I tried to use the service /turtlesim/set_parameters [rcl_interfaces/srv/SetParameters] to set the background of the turtlesim ...
Yongxue Law's user avatar
0 votes
0 answers
16 views

I "successfully" killed a turtle that does not exsit in the first place, how to fix this?

I have written the following code to kill a turtle using the service "/kill". When I first run the C++ exeucatable, I successfully killed it. But when I run the code again, I "...
Yongxue Law's user avatar
0 votes
0 answers
46 views

spawn turtle at specific location in turtlesim

I am trying to spawn turtle bot at specific location using launch file. I am able to spawn robot successfully at default location using: ...
Pratham's user avatar
  • 29
1 vote
0 answers
48 views

ros tutorial turtlesim running but no display in docker

I have just started learning ros from the tutorial given in their website. Tutorial link As i am using windows I wanted to learn in Ubuntu. So i am using docker version of the ros. but now while ...
Amarnath's user avatar
  • 111
0 votes
0 answers
8 views

running turtlesim in windows 10 makes error

I have installed ros2 foxy in my system(due to go with a ROS2 tutorial) and according to the document which ros provides , I did it OK and also I run talker and listener example and it is OK. the ...
Amin Darestani's user avatar
1 vote
1 answer
91 views

Voice Control Turtlesim ROS2 Humble on Ubuntu 20.04 with Pocketsphinx

I want to use Pocketsphinx on my ROS2 workspace, but wanted to try it out on Turtlesim first. While building my workspace with ...
metaje's user avatar
  • 11
0 votes
1 answer
311 views

Error running turtlesim turtlesim_node

I have a Windows 11 machine onto which IO have installed Ubuntu 22.04 using the Windows sub-system for Linux. I have followed the instructions to install ROS ( https://docs.ros.org/en/humble/...
Jevers's user avatar
  • 11
0 votes
1 answer
26 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
16 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
26 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
186 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
2 votes
1 answer
2k 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
14 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
11 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
7 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
25 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
8 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
142 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
44 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
10 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
20 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
8 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
8 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
24 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
243 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
36 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
2 views

Trouble logging uint8 message fields

...
user avatar
0 votes
1 answer
55 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
3 views

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
16 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
1k 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
23 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
3 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
90 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
5 views

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
13 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
23 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
5 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
10 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
36 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
  • 465
0 votes
1 answer
3 views

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
8 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
16 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