osrf / subt

This repostory contains software for the virtual track of the DARPA SubT Challenge. Within this repository you will find Gazebo simulation assets, ROS interfaces, support scripts and plugins, and documentation needed to compete in the SubT Virtual Challenge.
Other
309 stars 97 forks source link

Cannot run docker build in SystemSetupDocker #132

Closed osrf-migration closed 5 years ago

osrf-migration commented 5 years ago

Original report (archived issue) by Lý Nguyễn (Bitbucket: Lý Nguyễn).


Hi all,

I am trying to run the SystemSetupDocker tutorial from https://osrf-migration.github.io/subt-gh-pages/#!/osrf/subt/wiki/tutorials/SystemSetupDocker. It ended up with a problem, I will attach its' images.

It seem the docker command in bash files might have some problem. If there is a solution, please let me know. Thanks in advance.

osrf-migration commented 5 years ago

Original comment by Alfredo Bencomo (Bitbucket: bencomo).


Can you try the release image?

https://osrf-migration.github.io/subt-gh-pages/#!/osrf/subt/wiki/tutorials/SystemSetupDockerhub

osrf-migration commented 5 years ago

Original comment by Lý Nguyễn (Bitbucket: Lý Nguyễn).


Hi Alfredo Bencomo (bencomo) , thanks for the quick reply. I have tried the link you provided. The option 1 gives me bug, but the option 2 succeed in giving me the whole map. I now can spawn the robot, but it seem unable to move with joystick.

osrf-migration commented 5 years ago

Original comment by Alfredo Bencomo (Bitbucket: bencomo).


Open a second terminal, connect your USB joystick, and run the command below to make sure the joystick device (Logitech F310) is working properly

jstest /dev/input/js0

If joystick generate outputs, then the joystick and stop jtest by pressing Ctrl-C. In that second terminal, now run the commands below. That will allow you to move the X1 robot.

cd ~/subt_ws/src/subt/docker

./join.bash subt_sim_entry

roslaunch subt_example teleop.launch
osrf-migration commented 5 years ago

Original comment by Alfredo Bencomo (Bitbucket: bencomo).


osrf-migration commented 5 years ago

Original comment by Lý Nguyễn (Bitbucket: Lý Nguyễn).


Alfredo Bencomo (bencomo) , the command ./join.bash subt_sim_entry raised me some bug with docker exec.

This is what happens in join.bash

osrf-migration commented 5 years ago

Original comment by Hector Escobar (Bitbucket: hector_escobar).


I’ve seen this last error when you have multiple containers with the same name running. On another terminal type docker container ls, if there is more than one subt_sim_entry shown, you will have to stop them by doing docker stop CONTAINER_ID

osrf-migration commented 5 years ago

Original comment by Lý Nguyễn (Bitbucket: Lý Nguyễn).


Hi Hector Escobar (hector_escobar) , thank you for the help. Unfortunately, when I checked the docker container list as you suggested, I only see one container of the running simulator. If I stop the container, the simulation will stop also.

osrf-migration commented 5 years ago

Original comment by Lý Nguyễn (Bitbucket: Lý Nguyễn).


To update, even I cannot control the robot through joystick, roslaunch pub command still works and I can control the robot using it.

osrf-migration commented 5 years ago

Original comment by Alfredo Bencomo (Bitbucket: bencomo).


Open a new terminal, type the command below, and post the output here.

docker images
osrf-migration commented 5 years ago

Original comment by Lý Nguyễn (Bitbucket: Lý Nguyễn).


Hi Alfredo Bencomo (bencomo) , thank you for the feed back and sorry for the late answer, I didn’t have my computer at that time. I have run the command you asked and this is the result.

osrf-migration commented 5 years ago

Original comment by Alfredo Bencomo (Bitbucket: bencomo).


Hi Lý,

Everything looks correct in your screenshot. Let me look into it more and post back here tomorrow.

osrf-migration commented 5 years ago

Original comment by Lý Nguyễn (Bitbucket: Lý Nguyễn).


Hi Alfredo Bencomo (bencomo) , I really appreciate your help.

osrf-migration commented 5 years ago

Original comment by Alfredo Bencomo (Bitbucket: bencomo).


Hi Lý,

We just released a new docker image. Please follow again the instructions here and let me know if you can now control the X1 UGV with the joystick controller? I added bullet #3 for that.

osrf-migration commented 5 years ago

Original comment by Lý Nguyễn (Bitbucket: Lý Nguyễn).


Hi Alfredo Bencomo (bencomo) , thank you for the new instruction. Unfortunately, there is still some problems with this. when I ran the rosluanch it still sent me this error, I’ll attach the output for you.

By the way, the docker exec command from the tutorial seem a little bit confusing with the word “tput lines”. I’m able to run it with the command docker exec --privileged -e DISPLAY=${DISPLAY} -e LINES=tputlines -it ${containerid} bash, I don’t know if it’s correct.

This is what I got:

developer@aioz-trung-intern:~/subt_ws$ roslaunch subt_example teleop.launch
... logging to /home/developer/.ros/log/aa3fe078-b1a2-11e9-bdee-00d8615467a1/roslaunch-aioz-trung-intern-533.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.

started roslaunch server http://aioz-trung-intern:44125/

SUMMARY

PARAMETERS

NODES
/
joy_node (joy/joy_node)
teleop_twist_joy (subt_example/teleop_node)

ROS_MASTER_URI=http://localhost:11311

process[joy_node-1]: started with pid [548]
[ERROR] [1564365102.935745364]: Couldn't open joystick force feedback!
process[teleop_twist_joy-2]: started with pid [549]

osrf-migration commented 5 years ago

Original comment by Alfredo Bencomo (Bitbucket: bencomo).


Lý,

The error Couldn't open joystick force feedback! can be ignored (see here).

I also update the docker exec command in the tutorial.

osrf-migration commented 5 years ago

Original comment by Lý Nguyễn (Bitbucket: Lý Nguyễn).


I have done in generating the simulation and control the robot through game controller. It seems that I forgot to keep pushing the LB button before using joystick.

osrf-migration commented 5 years ago

Original comment by Alfredo Bencomo (Bitbucket: bencomo).