larics / icuas24_competition

20 stars 7 forks source link

Gazebo fail after running start.sh #4

Closed allenthreee closed 8 months ago

allenthreee commented 8 months ago

The error message is as follows:

/root/sim_ws/src/uav_ros_simulation/ros_packages/ardupilot_gazebo/scripts/run_copter.sh: "cat ${PARAM_PATH} >> ${IDENTITY_PATH}" command failed with exit code 1 [sim_vehicle_startup-1] process has died [pid 26799, exit code 1, cmd bash -c sleep 1.0; $0 $@ /root/sim_ws/src/uav_ros_simulation/ros_packages/ardupilot_gazebo/scripts/run_copter.sh kopterworx 1 /root/uav_ws/install/share/icuas24_competition/parameters/arducopter_nogps.params false false 50 gazebo-iris ArduCopter false --no-rebuild name:=sim_vehicle_startup log:=/root/.ros/log/2ca6768a-9f10-11ee-b33f-a4c3f0785be 5/sim_vehicle_startup-1.log]. log file: /root/.ros/log/2ca6768a-9f10-11ee-b33f-a4c3f0785be5/sim_vehicle_startup-1*.log all processes on machine have died, roslaunch will exit

lmark1_docker_tags There are only these 2 tags in your dockerhub, are the previous ones deleted? And I guess the bugs are related to this docker image version :)

fpetric commented 8 months ago

@lmark1 can you take a look?

lmark1 commented 8 months ago

Hey @allenthreee,

You can try now. I updated Dockerfiles and build script.

allenthreee commented 8 months ago

Hey @allenthreee,

You can try now. I updated Dockerfiles and build script.

Thank you for your swift reply. The docker image works now. However, the UAV flies out of control after the gazebo simulation starts. The terminal output and gazebo are shown below, can you take a look :)

uav_flies_out_of_range

uav_flies_out_of_range_gazebo

lmark1 commented 8 months ago

Hey @allenthreee,

It seems that the starutup folder is using an older parameter set for ardupilot.

I will get it sorted by the end of today. Thank you for your patience.

allenthreee commented 8 months ago

Hey @allenthreee,

It seems that the starutup folder is using an older parameter set for ardupilot.

I will get it sorted by the end of today. Thank you for your patience.

Hi, @lmark1 , Thank you for your help, may I ask have you upload the new params :)

lmark1 commented 8 months ago

@allenthreee

Please run the following command to update the base images:

docker pull lmark1/uav_ros_simulation:focal-bin-0.0.1

or if you're not using GPU

docker pull lmark1/uav_ros_simulation:focal-nogpu-bin-0.0.1

Then, run ./docker_build.sh again, remove the existing icuas_competition container, and run ./docker_run.sh. I tried it out and it should be running as intended, i.e. UAV takes off some time after ./start.sh is started.

allenthreee commented 8 months ago

@allenthreee

Please run the following command to update the base images:

docker pull lmark1/uav_ros_simulation:focal-bin-0.0.1

or if you're not using GPU

docker pull lmark1/uav_ros_simulation:focal-nogpu-bin-0.0.1

Then, run ./docker_build.sh again, remove the existing icuas_competition container, and run ./docker_run.sh. I tried it out and it should be running as intended, i.e. UAV takes off some time after ./start.sh is started.

Hi @lmark1 ,

Thank you for your help, it works perfectly now.

Merry Christmas!

lmark1 commented 8 months ago

Hi @lmark1 ,

Thank you for your help, it works perfectly now.

Merry Christmas!

Good to hear! Merry Christmas! 😁