Can I use "import rospy" in MAVSDK?

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 “./”, line 7, in
import rospy
File “/opt/ros/melodic/lib/python2.7/dist-packages/rospy/”, line 49, in
from .client import spin, myargv, init_node,
File “/opt/ros/melodic/lib/python2.7/dist-packages/rospy/”, line 52, in
import roslib
File “/opt/ros/melodic/lib/python2.7/dist-packages/roslib/”, line 50, in
from roslib.launcher import load_manifest # noqa: F401
File “/opt/ros/melodic/lib/python2.7/dist-packages/roslib/”, line 42, in
import rospkg
ModuleNotFoundError: No module named ‘rospkg’

I suggest to either use ROS with MAVROS or MAVSDK. Mixing the two doesn’t make much sense.

Then is there a way in MAVSDK to attain information from different computer such as subscriber in MAVROS?

As said elsewhere: create a ROS node and then use MAVSDK in it.