Can I use “import rospy” in MAVSDK?
I’m trying to import rospy since I want to subscribes topics from outside just like I use them for MAVROS.
But I got an error as follows.
Is it working in MAVSDK? and if so, what would be the solution?
Traceback (most recent call last):
File “./test_0824.py”, line 7, in
File “/opt/ros/melodic/lib/python2.7/dist-packages/rospy/init.py”, line 49, in
from .client import spin, myargv, init_node,
File “/opt/ros/melodic/lib/python2.7/dist-packages/rospy/client.py”, line 52, in
File “/opt/ros/melodic/lib/python2.7/dist-packages/roslib/init.py”, line 50, in
from roslib.launcher import load_manifest # noqa: F401
File “/opt/ros/melodic/lib/python2.7/dist-packages/roslib/launcher.py”, line 42, in
ModuleNotFoundError: No module named ‘rospkg’