Closed Y-Grigoriy closed 3 years ago
@Y-Grigoriy Did you modify the copied over iris
model so that the referenced meshes are also looking for the meshes inside myvehicle
?
@Jaeyoung-Lim my_vehicle
is displayed correctly in Gazebo (links to new meshes have been changed correctly, both for the robot body and propellers, and also I updated the rotor joints), the problem is that the gazebo server does not launch automatically and autopilot simulation does not start.
the problem is that the gazebo server does not launch automatically and autopilot simulation does not start.
@Y-Grigoriy In fact it does: you can see that gzserver has started successfully
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 172.18.0.3
What you can do is try running the following command for gazebo be more explicit about the failures
VERBOSE_SIM=1 make px4_sitl gazebo_myvehicle
@Jaeyoung-Lim, in my initial message I mentioned, that gazebo server did not start and I launched it in additional terminal. Nevertheless, you helped me. I checked launching with _VERBOSESIM=1 and found that gazebo server did not launch due to gazebo_multirotor_base_plugin
had wrong link on the robot body. I fixed it, and now my_vehicle can fly)
Thank you.
I prepared new model of quadrotor in Gazebo following to the next steps:
PX4-Autopilot/platforms/posix/cmake/sitl_target.cmake
set(models none iris iris_opt_flow ... rover hippocampus <newmodel name>)
ROMFS/px4fmu_common/init.d-posix
(based off the iris files), give it a number (10019) and name it _10019_myvehiclePX4-Autopilot/ROMFS/px4fmu_common/init.d-posix/airframes/CMakeLists.txt
References: https://github.com/PX4/PX4-Devguide/issues/398 https://discuss.px4.io/t/create-custom-model-for-sitl/6700/16
However, gazebo server was not launched automatically after command:
make px4_sitl gazebo_my_vehicle
I started gzserver in additional terminal and model was shown in Gazebo environment, however the Mavlink connection was not established:
Could you help me?