I recently ran the following command to launch my navigation code:
ros2 launch navigation.launch.py map:=<mymap>
However, it failed to launch successfully. When I run the command with use_rviz:=false, it works fine, so I assume the issue is related to RViz. Below are some of the error logs I encountered:
Iām using SSH and Moonlight remote desktop to connect, but I mainly use Moonlight to launch the navigation code so I can see the Rviz2 map. Navigation was working fine a few days ago, but it recently stopped functioning.
Hi @allen, I believe this issue got fixed with our recent bug fix to Stretch ROS2. It is related to a bug where importing cv2 causes other QT applications to crash, which is Rviz, in your case, exits the demo. Have described it in his post
Could you pull the latest stretch_ros2 repository updates, rebuild your workspace, and then try re-running the demo?