PX4 / PX4-Autopilot

PX4 Autopilot Software
https://px4.io
BSD 3-Clause "New" or "Revised" License
8.28k stars 13.43k forks source link

make px4_sitl_rtps gazebo cannot run properly on jetson #18642

Closed JohnnyLiu2886 closed 2 years ago

JohnnyLiu2886 commented 2 years ago

I am using ros2 and px4 on Jetson nano. "micrortps_agent", "micrortps_client" and "sensor_combined_listener" can be ran properly using pixhawk 4 through fmu-v5_rtps.

However, when I am going to run "sensor_combined_listener" using simulator and gazebo, it receives nothing.

Moreover, the terminal running px4_sitl_rtps works weirdly. Unlike the result of others, my terminal only printing "[Dbg] [GuiIface.cc:112] XmbTextListToTextProperty result code -2" continuously. For normal operation, it should print a lot of "INFO" related messages. Apart from that, I cannot send any command to the terminal during the execution of "make px4_sitl_rtps gazebo". For normal case, we can send command through "pxh>". For example, running "micrortps client" or "gps status".

It is necessary for me to use the simulator as I want to test the offboard control using the simulator.

q

JohnnyLiu2886 commented 2 years ago

Problem solved. I fix it by following @luisp23's instructions at https://discuss.px4.io/t/nvidia-jetson-xavier-agx-controlling-px4-pixhawk-ros-mavros/16135/17