can't use sudo rosbag
I can use rosbag by "rosbag record" and "sudo su" then "rosbag record" ,but I can't “sudo rosbag” I will get that:: ""Traceback (most recent call last): File "/opt/ros/melodic/bin/rosbag", line 34, in <module> import rosbag ImportError: No module named rosbag"" How should I config env?
Can you clarify why you'd need to run
rosbag
(of all utilities) asroot
?I add the ”rosbag“ into a service to achieve auto bag after boot. I use User=root ,I get "rosbag not found"