pal-robotics / tiago_robot

http://wiki.ros.org/Robots/TIAGo
Apache License 2.0
41 stars 36 forks source link

[spawn_model-4] process has died #13

Open DavidNguyen95 opened 3 years ago

DavidNguyen95 commented 3 years ago

Now I am using a docker (that has pytorch and cuda inside : pytorch/pytorch:1.8.1-cuda10.2-cudnn7-devel) because we need to use GPU , then i install tiago package inside that docker. In general docker build and rocker run docker container complete.

Inside docker container When I run roslaunch a simulation roslaunch tiago_gazebo tiago_gazebo.launch public_sim:=true robot:=steel Gazebo ran but without tiago model inside, on the terminal there is a error like fail when load URDF model. More detail about error here:

[spawn_model-4] process has died [pid 673, exit code 1, cmd /tiago_public_ws/src/gazebo_ros_pkgs/gazebo_ros/scripts/spawn_model -urdf -param robot_description -x 0.0 -y 0.0 -z 0.0 -R 0.0 -P 0.0 -Y 0.0 -model tiago __name:=spawn_model __log:=/root/.ros/log/c92a57de-ea5d-11eb-b926-0242ac110002/spawn_model-4.log].
log file: /root/.ros/log/c92a57de-ea5d-11eb-b926-0242ac110002/spawn_model-4*.log

Can you have any suggestion for me? to fix the issue.

Or suggest me other way to make dockerfile that can use GPU ( cuda, Pytorch ). I tried to use tiago docker (docker base on osrf/ros:melodic-desktop-full-bionic ) it work good with tiago package but it doesn't have cuda and pytorch inside. Can anyone suggest me install cuda inside tiago docker? Many thanks Dat

arthurgomes4 commented 1 year ago

could you send the docker file for the image you used? (the one that gave the spawn-model error)