I`m trying to write a ros module in python, but I'm facing this issue below:
import: not authorized `rospy' @ error/constitute.c/WriteImage/1028.
from: can't read /var/mail/sensor_msgs.msg
from: can't read /var/mail/tf2_msgs.msg
from: can't read /var/mail/geometry_msgs.msg
from: can't read /var/mail/cv_bridge
Is there any configuration wrong in CmkaList.txt or package.xml? Am I missing any file for cmake compile correctly python code?
EDIT #1: Added code
#!/usr/bin/env python
import rospy
from sensor_msgs.msg import Image,CameraInfo
from tf2_msgs.msg import TFMessage
from geometry_msgs.msg import TransformStamped
from cv_bridge import CvBridge
import airsim
import cv2
import numpy as np here
↧