Я следил за инструкцией и при запуске обнаружил эту ошибку. Как исправить?
(base) tonyu@tonyu-Q550LF:~/tutorial_ws$ roslaunch learning_tf start_demo.launch... logging to /home/tonyu/.ros/log/8876a6da-c3b1-11ea-afca-0c8bfda0aa0a/roslaunch-tonyu-Q550LF-3629.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.
запущен сервер roslaunch http://tonyu-Q550LF: 36081 /
========
PARAMETERS
* /rosdistro: melodic
* /rosversion: 1.14.6
* /turtle1_tf_broadcaster/turtle: turtle1
* /turtle2_tf_broadcaster/turtle: turtle2
NODES
/
sim (turtlesim/turtlesim_node)
teleop (turtlesim/turtle_teleop_key)
turtle1_tf_broadcaster (learning_tf/turtle_tf_broadcaster.py)
turtle2_tf_broadcaster (learning_tf/turtle_tf_broadcaster.py)
auto-starting new master
process[master]: started with pid [3639]
ROS_MASTER_URI=http://localhost:11311
setting /run_id to 8876a6da-c3b1-11ea-afca-0c8bfda0aa0a
process[rosout-1]: started with pid [3650]
started core service [/rosout]
process[sim-2]: started with pid [3654]
process[teleop-3]: started with pid [3658]
process[turtle1_tf_broadcaster-4]: started with pid [3659]
Reading from keyboard
---------------------------
Use arrow keys to move the turtle. 'q' to quit.
process[turtle2_tf_broadcaster-5]: started with pid [3667]
Traceback (most recent call last):
File "/home/tonyu/tutorial_ws/src/learning_tf/nodes/turtle_tf_broadcaster.py", line 2, in <module>
import roslib
File "/opt/ros/melodic/lib/python2.7/dist-packages/roslib/__init__.py", line 50, in <module>
from roslib.launcher import load_manifest # noqa: F401
File "/opt/ros/melodic/lib/python2.7/dist-packages/roslib/launcher.py", line 42, in <module>
import rospkg
ModuleNotFoundError: No module named 'rospkg'
Traceback (most recent call last):
File "/home/tonyu/tutorial_ws/src/learning_tf/nodes/turtle_tf_broadcaster.py", line 2, in <module>
import roslib
File "/opt/ros/melodic/lib/python2.7/dist-packages/roslib/__init__.py", line 50, in <module>
from roslib.launcher import load_manifest # noqa: F401
File "/opt/ros/melodic/lib/python2.7/dist-packages/roslib/launcher.py", line 42, in <module>
import rospkg
ModuleNotFoundError: No module named 'rospkg'
[turtle1_tf_broadcaster-4] process has died [pid 3659, exit code 1, cmd /home/tonyu/tutorial_ws/src/learning_tf/nodes/turtle_tf_broadcaster.py __name:=turtle1_tf_broadcaster __log:=/home/tonyu/.ros/log/8876a6da-c3b1-11ea-afca-0c8bfda0aa0a/turtle1_tf_broadcaster-4.log].
log file: /home/tonyu/.ros/log/8876a6da-c3b1-11ea-afca-0c8bfda0aa0a/turtle1_tf_broadcaster-4*.log
[turtle2_tf_broadcaster-5] process has died [pid 3667, exit code 1, cmd /home/tonyu/tutorial_ws/src/learning_tf/nodes/turtle_tf_broadcaster.py __name:=turtle2_tf_broadcaster __log:=/home/tonyu/.ros/log/8876a6da-c3b1-11ea-afca-0c8bfda0aa0a/turtle2_tf_broadcaster-5.log].
log file: /home/tonyu/.ros/log/8876a6da-c3b1-11ea-afca-0c8bfda0aa0a/turtle2_tf_broadcaster-5*.log