osrf / vrx

Virtual RobotX (VRX) resources.
Apache License 2.0
416 stars 188 forks source link

run failed in Docker Container #79

Closed osrf-migration closed 5 years ago

osrf-migration commented 5 years ago

Original report (archived issue) by Masaya Kataoka (Bitbucket: hakuturu583).


I want to use vrx with Docker image, so I typed link below.

docker pull osrf/vrx:nvidia_current
docker run -it osrf/vrx:nvidia_current

Then, I try launch vrx, I faced errors.

developer@e9ff7f0ef433:~$ ls
vrx_ws
developer@e9ff7f0ef433:~$ roslaunch vrx_gazebo usv_                
usv_joydrive.launch  usv_keydrive.launch  
developer@e9ff7f0ef433:~$ roslaunch vrx_gazebo usv_
usv_joydrive.launch  usv_keydrive.launch  
developer@e9ff7f0ef433:~$ roslaunch vrx_gazebo     
navigation_task.launch  sandisland.launch       scan_and_dock_b.launch  usv_keydrive.launch     
perception_task.launch  sandisland.test         station_keeping.launch  vrx.launch              
quat2rpy.launch         scan_and_dock_a.launch  usv_joydrive.launch     wayfinding.launch       
developer@e9ff7f0ef433:~$ roslaunch vrx_gazebo vrx.launch 
... logging to /home/developer/.ros/log/f267b418-51c4-11e9-931d-0242ac110002/roslaunch-e9ff7f0ef433-595.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

xacro: in-order processing became default in ROS Melodic. You can drop the option.
started roslaunch server http://e9ff7f0ef433:37406/

SUMMARY
========

PARAMETERS
 * /gazebo/enable_ros_network: True
 * /robot_description: <?xml version="1....
 * /rosdistro: melodic
 * /rosversion: 1.14.3
 * /use_sim_time: True

NODES
  /
    gazebo (gazebo_ros/gzserver)
    gazebo_gui (gazebo_ros/gzclient)
    spawn_model (gazebo_ros/spawn_model)

auto-starting new master
process[master]: started with pid [608]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to f267b418-51c4-11e9-931d-0242ac110002
process[rosout-1]: started with pid [619]
started core service [/rosout]
process[gazebo-2]: started with pid [623]
[ INFO] [1553824195.206045494]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1553824195.206934265]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
process[gazebo_gui-3]: started with pid [631]
Warning [parser.cc:759] XML Attribute[xmlns:xacro] in element[sdf] not defined in SDF, ignoring.
Warning [parser.cc:759] XML Attribute[xmlns:xacro] in element[world] not defined in SDF, ignoring.
process[spawn_model-4]: started with pid [687]
[ INFO] [1553824195.505778611]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1553824195.506743806]: waitForService: Service [/gazebo_gui/set_physics_properties] has not been advertised, waiting...
the rosdep view is empty: call 'sudo rosdep init' and 'rosdep update'
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::lock_error> >'
  what():  boost: mutex lock failed in pthread_mutex_lock: Invalid argument
Aborted (core dumped)
[gazebo_gui-3] process has died [pid 631, exit code 134, cmd /opt/ros/melodic/lib/gazebo_ros/gzclient __name:=gazebo_gui __log:=/home/developer/.ros/log/f267b418-51c4-11e9-931d-0242ac110002/gazebo_gui-3.log].
log file: /home/developer/.ros/log/f267b418-51c4-11e9-931d-0242ac110002/gazebo_gui-3*.log
[ INFO] [1553824196.396081413, 0.021000000]: waitForService: Service [/gazebo/set_physics_properties] is now available.
[ INFO] [1553824196.411523750, 0.036000000]: Physics dynamic reconfigure ready.
[spawn_model-4] process has finished cleanly
log file: /home/developer/.ros/log/f267b418-51c4-11e9-931d-0242ac110002/spawn_model-4*.log
^C[gazebo-2] killing on exit
[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done

It seems rosdep error. Can you tell me how to solve this??

osrf-migration commented 5 years ago

Original comment by Carlos Agüero (Bitbucket: caguero, GitHub: caguero).


Could you try the instructions described in the Docker installation tutorial?

https://osrf-migration.github.io/vrx-gh-pages/#!/osrf/vrx/wiki/tutorials/SystemSetupDocker

osrf-migration commented 5 years ago

Original comment by Carlos Agüero (Bitbucket: caguero, GitHub: caguero).


You should follow the Docker instructions detailed in the tutorial. Please, reopen if that's the case and this is still an open issue.