Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gazebo fail after running start.sh #4

Closed
allenthreee opened this issue Dec 20, 2023 · 8 comments
Closed

Gazebo fail after running start.sh #4

allenthreee opened this issue Dec 20, 2023 · 8 comments

Comments

@allenthreee
Copy link

allenthreee commented Dec 20, 2023

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
Copy link
Contributor

fpetric commented Dec 20, 2023

@lmark1 can you take a look?

@lmark1
Copy link
Collaborator

lmark1 commented Dec 20, 2023

Hey @allenthreee,

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

@allenthreee
Copy link
Author

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
Copy link
Collaborator

lmark1 commented Dec 21, 2023

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
Copy link
Author

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
Copy link
Collaborator

lmark1 commented Dec 22, 2023

@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
Copy link
Author

allenthreee commented Dec 23, 2023

@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
Copy link
Collaborator

lmark1 commented Dec 25, 2023

Hi @lmark1 ,

Thank you for your help, it works perfectly now.

Merry Christmas!

Good to hear!
Merry Christmas! 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants