PX4 MAVROS单机仿真无法读取到topic数据
PX4 MAVROS单机仿真无法读取到topic数据
之前是使用硬件进行连接读取的,但使用SITL时出现无法读取topic的问题。经过检测发现是bashrc的内容需要注释部分,具体如下。原因猜测可能是由于工作空间的初始化会影响软件仿真
#在bashrc文件中,要注释第二行的代码
source /opt/ros/melodic/setup.bash
#source ~/catkin_ws/devel/setup.bash
source ~/PX4_Firmware/Tools/setup_gazebo.bash ~/PX4_Firmware/ ~/PX4_Firmware/bu$
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:~/PX4_Firmware
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:~/PX4_Firmwar
共有 0 条评论