PX4 / PX4-Avoidance

PX4 avoidance ROS node for obstacle detection and avoidance.
http://px4.io
BSD 3-Clause "New" or "Revised" License
639 stars 333 forks source link

Error when running "rosrun mavros mavsafety arm" #159

Closed BreederBai closed 5 years ago

BreederBai commented 5 years ago

As the title says, when I run this command, something goes wrong.The error message is as follows

Traceback (most recent call last): File "/opt/ros/kinetic/lib/mavros/mavsafety", line 18, in from mavros import command File "/opt/ros/kinetic/lib/python2.7/dist-packages/mavros/command.py", line 23, in from mavros_msgs.srv import CommandLong, CommandInt, CommandBool, CommandHome, CommandTOL, CommandTriggerControl, CommandTriggerInterval ImportError: cannot import name CommandTriggerInterval

The operating system I am using is ubuntu16.04."rosrun mavros mavsys mode -c OFFBOARD" can execute successfully.The simulation interface can also display normally.

mrivi commented 5 years ago

Hi, which versions of mavros and mavlink do you have installed?

BreederBai commented 5 years ago

@mrivi The version of ROS I use is "kinetic", I installed mavros and mavros-extras according to the tutorial. I don't know what version of mavros and mavlink is, how can I view their version?

mrivi commented 5 years ago

@BreederBai dpkg -s ros-kinetic-mavros | grep -i version and dpkg -s ros-kinetic-mavlink | grep -i version