ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
3

Unable to broadcast the turtle position to tf2 , Tutorial: turtle_tf2_demo.launch and getting only one turtle

asked 2020-07-16 23:27:45 -0500

himanshi gravatar image

Hello, i am new to ROS and i was learning tf2 from tutorial, while running this command: roslaunch turtle_tf2 turtle_tf2_demo.launch i got only one turtle and its not broadcasting its postion to tf2 while running rosrun tf tf_echo turtle1 turtle2

this is my terminal output after running roslaunch turtle_tf2 turtle_tf2_demo.launch:

process[turtle2_tf2_broadcaster-5]: started with pid [21884]
/usr/bin/env: ‘python’: No such file or directory
process[turtle_pointer-6]: started with pid [21885]
/usr/bin/env: ‘python’: No such file or directory
[turtle1_tf2_broadcaster-4] process has died [pid 21883, exit code 127, cmd /opt/ros/noetic/lib/turtle_tf2/turtle_tf2_broadcaster.py __name:=turtle1_tf2_broadcaster __log:=/home/himanshi/.ros/log/9ddee9c0-c7e3-11ea-9df6-61175895b819/turtle1_tf2_broadcaster-4.log].

I think i am using python3 thats why getting this problem , but dont know how to solve it.

please suggest me what should i do.

Thank you,

with regards, Himanshi

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
8

answered 2020-09-10 12:18:16 -0500

suresh gravatar image

I was also facing this issue in ros-noetic & ubuntu 20 version. Even though Python3 is default somehow usr/bin/python was not pointing to python3 folder.

creating a symlink fixed the issue (as follows): $ sudo ln -s /usr/bin/python3 /usr/bin/python

edit flag offensive delete link more

Comments

I have to login to put an upvote to this immediately.

congphase gravatar image congphase  ( 2021-06-05 06:14:20 -0500 )edit

Thank you ! it worked. I was with noetic and ubuntu 20 on VM.

Edyger gravatar image Edyger  ( 2021-08-27 08:21:42 -0500 )edit

Question Tools

Stats

Asked: 2020-07-16 23:25:51 -0500

Seen: 540 times

Last updated: Jul 16 '20