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

Is the new simulator working for anyone? #74

Closed
osrf-migration opened this issue Jun 11, 2019 · 42 comments
Closed

Is the new simulator working for anyone? #74

osrf-migration opened this issue Jun 11, 2019 · 42 comments
Labels
bug Something isn't working major

Comments

@osrf-migration
Copy link

Original report (archived issue) by Neil Johnson (Bitbucket: realdealneil1980).

The original report had attachments: error.log


We have been trying for the last two weeks to get the new version of the subt simulator working (ignition). We have tried on many different machines, and so far, we cannot figure out how to connect to the agents and drive them around in the team.ign file. Has anyone gotten this working on the new ignition system? It appears that the effort to get our system ported from the gazebo9 system to the ignition system is going to quite burdensome, but we can’t even start that yet because the simulator doesn’t run for us.

@osrf-migration
Copy link
Author

Original comment by Alfredo Bencomo (Bitbucket: bencomo).


Hi Neil,

What exact errors are you getting?

@osrf-migration
Copy link
Author

Original comment by Neil Johnson (Bitbucket: realdealneil1980).


I am seeing the errors posted on Issue #72. I have now tried using the docker installation, and I don’t get those errors, but I am not able to drive the robots when using team.ign. I don’t really see any errors other than “No processes to monitor” …”Shutting down process monitor complete”

We have tried on several different computers, all of which work with the gazebo9 version, but none of which work with the team.ign launch.

@osrf-migration
Copy link
Author

Original comment by Martin Dlouhy (Bitbucket: robotikacz).


I can confirm, that if I want to follow “Catkin workspace install” I end up with

You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
ignition-blueprint : Depends: ignition-gazebo2
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

@osrf-migration
Copy link
Author

Original comment by Alfredo Bencomo (Bitbucket: bencomo).


Martin/Neil,

We have committed several updates the last few days, so would you mind running a full installation again? Delete your current /subt_ws directory (rm -rfv subt_ws/) and clear your ~/.ignition/fuel/fuel.ignitionrobotics.org/openrobotics directory (i.e. remove the /models folder)

Then, before you execute the steps listed here again, run this command first:

sudo apt-get install freeglut3-dev libavcodec-dev libavdevice-dev libavformat-dev libavutil-dev libdart6-collision-ode-dev libdart6-dev libdart6-utils-urdf-dev libfreeimage-dev libgflags-dev libglew-dev libgts-dev libogre-1.9-dev libogre-2.1-dev libprotobuf-dev libprotobuf-dev libprotoc-dev libqt5core5a libswscale-dev libtinyxml2-dev libtinyxml-dev pkg-config protobuf-compiler python qml-module-qt-labs-folderlistmodel qml-module-qt-labs-settings qml-module-qtquick2 qml-module-qtquick-controls qml-module-qtquick-controls2 qml-module-qtquick-dialogs qml-module-qtquick-layouts qml-module-qtqml-models2 qtbase5-dev qtdeclarative5-dev qtquickcontrols2-5-dev ruby ruby-ronn uuid-dev libzip-dev libjsoncpp-dev libcurl4-openssl-dev libyaml-dev libzmq3-dev libsqlite3-dev python3-vcstool python3-colcon-common-extensions -y

Now proceed with the steps listed here.

Let me know if you are able to test the installation with the command in Step 6 ( ign launch -v 4 virtual_stix.ign) and I’ll send you another new command that launches the environment with four(4) vehicles configurations.

@osrf-migration
Copy link
Author

Original comment by Adam Uccello (Bitbucket: uccellap).


I have been unable to get the IGN stack working either. Trying to load the 'competition.ign' shows the 'home-base' and the tunnel entrance, but none of the actual tunnels load. If I fire up 'team.ign' afterward, a few pieces of the tunnel show up (some of the 'straight line' down the middle ones), but not all of it, and I can't use the joystick to control anything. Note that this is on the same machine that the Gazebo9 stuff is working just fine.

I’m attempting to use the docker setup.

@osrf-migration
Copy link
Author

Original comment by baila (Bitbucket: baila).


Hi Alfredo,

I followed your steps as well. While I am not getting any error at the beginning during step-6 (ign launch -v 4 virtual_stix.ign), Ignition window is coming up with white canvas. There is no such option to work with. Found the below logs while trying to select Gazebo3D option at the top-right side corner menu. Please help to resolve the issue. I am running from catkin install.

[GUI] [Msg] Loaded plugin [GzScene3D] from path [/usr/lib/x86_64-linux-gnu/ign-gazebo-2/plugins/gui/libGzScene3D.so]
/usr/lib/ruby/ignition/cmdlaunch1.rb:202: [BUG] Segmentation fault at 0x0000000000012900
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]

-- Control frame information -----------------------------------------------
c:0005 p:---- s:0044 e:000043 CFUNC :call
c:0004 p:0017 s:0039 e:000038 METHOD /usr/lib/ruby/ignition/cmdlaunch1.rb:202
c:0003 p:0446 s:0033 e:000032 METHOD /usr/lib/ruby/ignition/cmdlaunch1.rb:202
c:0002 p:0628 s:0019 E:001ae8 EVAL /usr/bin/ign:267 [FINISH]
c:0001 p:0000 s:0003 E:0021c0 (none) [FINISH]

-- Ruby level backtrace information ----------------------------------------
/usr/bin/ign:267:in <main>' /usr/lib/ruby/ignition/cmdlaunch1.rb:202:inexecute'
/usr/lib/ruby/ignition/cmdlaunch1.rb:202:in run' /usr/lib/ruby/ignition/cmdlaunch1.rb:202:incall'

-- Machine register context ------------------------------------------------
RIP: 0x00007f404c2c98ba RBP: 0x00007f404c91bbf0 RSP: 0x00007f404630da10
RAX: 0x0000000000012900 RBX: 0x0000000000000020 RCX: 0x00007f4040782820
RDX: 0x0000000000000000 RDI: 0x00000000000000c6 RSI: 0x00007f4040783010
R8: 0x00007f404630d96c R9: 0x000000000000000c R10: 0x00007f404078d550
R11: 0x000000000000001c R12: 0x00007f4040792540 R13: 0x00007f40406f4be0
R14: 0x00007f4040792540 R15: 0x00007f4040792540 EFL: 0x0000000000010202

-- C level backtrace information -------------------------------------------
SEGVSEGV received in SEGV handlerign launch -v 4 virtual_stix.ign

@osrf-migration
Copy link
Author

Original comment by Alfredo Bencomo (Bitbucket: bencomo).


baila (baila) You already indicated that you’re running from catkin install. However, were you previously using the docker installation as well?

And, does error trace occur during the launch or when you exit (ctrl-c)? If it's the former, then that is why you see the Ignition window coming up with white canvas only and we need to figure out why you are getting that failure.

@osrf-migration
Copy link
Author

Original comment by Neil Johnson (Bitbucket: realdealneil1980).


Alfredo Bencomo (bencomo) I tried reinstalling per your instructions above, but I’m getting the same results. I am attaching a screenshot of what the gazebo window and my terminals show:


This is what I see when running competition.ign and team.ign (left terminal is the competition.ign terminal, right terminal is team.ign). When I first loaded competition.ign, the tunnel wasn’t there at all. After running team.ign, the tunnel above was added, and the vehicles were spawned, but I am unable to connect to them.

The errors are always about parent entities not being found. I’m wondering if ignition is having a hard time loading models…I think I saw that some of the models are being loaded from remote URLs. Maybe their not downloading properly? Is it possible to force ignition to download everything? If I do a verbose listing of the files in the ignition models class, would that help debug things at all?

@osrf-migration
Copy link
Author

Original comment by Neil Johnson (Bitbucket: realdealneil1980).


In case this is helpful, here’s the directory listing for the ignition models:

subt-neil@subtneil-desktop:~/.ignition/fuel/fuel.ignitionrobotics.org/openrobotics/models$ ls -l
total 116
drwxr-xr-x 3 subt-neil subt-neil 4096 Jun 13 09:45 Backpack
drwxr-xr-x 3 subt-neil subt-neil 4096 Jun 13 09:19 'Base Station'
drwxr-xr-x 3 subt-neil subt-neil 4096 Jun 13 09:20 'Black and Decker Cordless Drill'
drwxr-xr-x 3 subt-neil subt-neil 4096 Jun 13 09:46 'Constrained Tunnel Tile Short'
drwxr-xr-x 3 subt-neil subt-neil 4096 Jun 13 09:45 'Constrained Tunnel Tile Tall'
drwxr-xr-x 3 subt-neil subt-neil 4096 Jun 13 09:19 'Edgar Mine Virtual STIX'
drwxr-xr-x 3 subt-neil subt-neil 4096 Jun 13 09:45 'Electrical Box'
drwxr-xr-x 3 subt-neil subt-neil 4096 Jun 13 09:45 Extinguisher
drwxr-xr-x 3 subt-neil subt-neil 4096 Jun 13 09:19 Fiducial
drwxr-xr-x 3 subt-neil subt-neil 4096 Jun 13 09:19 'Fire Extinguisher'
drwxr-xr-x 3 subt-neil subt-neil 4096 Jun 13 09:19 'JanSport Backpack Red'
drwxr-xr-x 3 subt-neil subt-neil 4096 Jun 13 09:19 'Jersey Barrier'
drwxr-xr-x 3 subt-neil subt-neil 4096 Jun 13 09:45 Phone
drwxr-xr-x 3 subt-neil subt-neil 4096 Jun 13 09:45 Radio
drwxr-xr-x 3 subt-neil subt-neil 4096 Jun 13 09:20 'Rescue Randy Sitting'
drwxr-xr-x 3 subt-neil subt-neil 4096 Jun 13 09:19 'Samsung J8 Black'
drwxr-xr-x 3 subt-neil subt-neil 4096 Jun 13 09:45 subt_tunnel_staging_area
drwxr-xr-x 3 subt-neil subt-neil 4096 Jun 13 09:45 Toolbox
drwxr-xr-x 3 subt-neil subt-neil 4096 Jun 13 09:45 'Tunnel Tile 1'
drwxr-xr-x 3 subt-neil subt-neil 4096 Jun 13 09:45 'Tunnel Tile 2'
drwxr-xr-x 3 subt-neil subt-neil 4096 Jun 13 09:45 'Tunnel Tile 5'
drwxr-xr-x 3 subt-neil subt-neil 4096 Jun 13 09:45 'Tunnel Tile 6'
drwxr-xr-x 3 subt-neil subt-neil 4096 Jun 13 09:45 'Tunnel Tile 7'
drwxr-xr-x 3 subt-neil subt-neil 4096 Jun 13 09:45 'Tunnel Tile Blocker'
drwxr-xr-x 3 subt-neil subt-neil 4096 Jun 13 09:46 Valve
drwxr-xr-x 3 subt-neil subt-neil 4096 Jun 13 09:41 'X1 Config 1'
drwxr-xr-x 3 subt-neil subt-neil 4096 Jun 13 09:41 'X2 Config 1'
drwxr-xr-x 3 subt-neil subt-neil 4096 Jun 13 09:41 'X3 UAV Config 1'
drwxr-xr-x 3 subt-neil subt-neil 4096 Jun 13 09:41 'X4 UAV Config 1'

@osrf-migration
Copy link
Author

Original comment by Alfredo Bencomo (Bitbucket: bencomo).


Neil,

If you deleted the /models folder under ~/.ignition/fuel/fuel.ignitionrobotics.org/openrobotics/, then yes, it’s going to download them when launch ign again.

Assuming that you already did a new fresh install and removed the /model folder, then can you just shutdown all the windows, reboot, and open just one terminal.

Then just execute these commands on that single terminal window:

source /opt/ros/melodic/setup.bash

source ~/subt_ws/install/setup.bash

cd ~/subt_ws/

ign launch -v 4 virtual_stix.ign robotName1:=X1 robotConfig1:=X1_SENSOR_CONFIG_1 robotName2:=X2 robotConfig2:=X2_SENSOR_CONFIG_1 robotName3:=X3 robotConfig3:=X3_SENSOR_CONFIG_1 robotName4:=X4 robotConfig4:=X4_SENSOR_CONFIG_1

@osrf-migration
Copy link
Author

Original comment by baila (Bitbucket: baila).


  • set attachment to "error.log"

Error logs for blank canvas

@osrf-migration
Copy link
Author

Original comment by baila (Bitbucket: baila).


Hi Alfredo Bencomo (bencomo) ,

I am using catkin only. I never used docker on my setup.

The log posted in my earlier comment, it came when I choose GzScene3D from the drop down menu at top-right corner.

Next I tried the commands you suggested above. This time some error lines came up. I have attached the logs in error.log file. I am also attaching the screenshot of blank canvas. Notice that it shows the Ignition icon as ‘Unknown’. I am not sure whether it is expected or not.

@osrf-migration
Copy link
Author

Original comment by Neil Johnson (Bitbucket: realdealneil1980).


Alfredo Bencomo (bencomo) I ran the command you mentioned yesterday. I see the virtual_stix environment show up, but the vehicles didn’t populate.

There were a few lines of red text in the gazebo output:

Early on, I get this one:

[Err] [LevelManager.cc:134] Could not find a plugin tag with name ignition::gazebo. Levels and distributed simulation will not work.

After the CommsBroker Dbg messages, I get this:

Unable to read [/home/subt-neil/subt_ws/install/share/subt_ign/worlds/virtual_stix.dot] file
[Err] [VisibilityTable.cc:57] Unable to populate visibility graph using path[/home/subt-neil/subt_ws/install/share/subt_ign/worlds/virtual_stix.dot]
[Err] [VisibilityRfModel.cc:36] Unable to load visibility table data files

I also see this warning:

[Wrn] [LevelManager.cc:737] Attempting to set performer with name [X1] , but the entity could not be found. Another attempt will be made in the next iteration.

I can provide the whole console output, but I don’t see a way to attach a document to a reply (maybe you can only attach when you create an issue?)

@osrf-migration
Copy link
Author

Original comment by Hector Escobar (Bitbucket: hector_escobar).


Hi @alfredo Bencomo,

I did an install using docker and I get similar problems as described by everyone else.

  1. If I follow step 4 to test the SubT Installation “ign launch virtual_stix.ign -v 4” then I can see the whole cave without errors.
  2. If I follow the exampleSetup with “ign launch competition.ign -v 4” and then “ign launch team.ign”, I get the white screen mentioned.
  3. Finally if I follow your last suggestion of

‌ source /opt/ros/melodic/setup.bash

source ~/subt_ws/install/setup.bash

cd ~/subt_ws/

ign launch -v 4 virtual_stix.ign robotName1:=X1 robotConfig1:=X1_SENSOR_CONFIG_1 robotName2:=X2 robotConfig2:=X2_SENSOR_CONFIG_1 robotName3:=X3 robotConfig3:=X3_SENSOR_CONFIG_1 robotName4:=X4 robotConfig4:=X4_SENSOR_CONFIG_1

Then the world gets loaded but no robots. And I see the following errors:

[Err] [LevelManager.cc:134] Could not find a plugin tag with name ignition::gazebo. Levels and distributed simulation will not work.

Unable to read [/home/developer/subt_ws/install/share/subt_ign/worlds/virtual_stix.dot] file
[Err] [VisibilityTable.cc:57] Unable to populate visibility graph using path[/home/developer/subt_ws/install/share/subt_ign/worlds/virtual_stix.dot]
[Err] [VisibilityRfModel.cc:36] Unable to load visibility table data files

and the following shows 3 times

[Err] [GazeboFactory.cc:175] Factory service call timed out.

@osrf-migration
Copy link
Author

Original comment by Sarah Kitchen (Bitbucket: snkitche).


I too was having problems similar to Neil - world launched, robots appeared, teleop with the game remote did not work (“Shutting down process monitor…”).

I was able to resolve the installation dependencies myself, but haven’t tried the newest instructions yet (last attempt was about 10 days ago). I was using the catkin instructions.

Can you guys update your wiki with guidelines on converting .launch to .ign files? Specifically the Team Configuration page?

@osrf-migration
Copy link
Author

Original comment by Alfredo Bencomo (Bitbucket: bencomo).


Restart you machine and try again with just one vehicle. It'll still show the [Err] [LevelManager.cc:134] and [Err] [VisibilityTable.cc:57] messages on the console, so ignore those for now.

ign launch -v 4 virtual_stix.ign robotName1:=X1 robotConfig1:=X1_SENSOR_CONFIG_1

@osrf-migration
Copy link
Author

Original comment by Neil Johnson (Bitbucket: realdealneil1980).


Alfredo Bencomo (bencomo) That seems to work a lot better! We are able to launch a single agent (we have tried X1 and X4). We don’t currently get any video coming from the /X1/rgbd_camera/image_raw topic. Does that work for you? Was the problem above only happening due to launching multiple agents? Will that be addressed soon?

@osrf-migration
Copy link
Author

Original comment by Alfredo Bencomo (Bitbucket: bencomo).


Neil, I’m glad you are now able to launch at least a single agent. I do get video from the agent’s camera (see X1 below), if that is what you meant. Are you selecting the ImageDisplay option from the drop-down top menu?

Regarding launching multiple agents, we are addressing that right now. As a matter of fact, I’m testing with four agents as you can see below. I’ll post an update later.

@osrf-migration
Copy link
Author

Original comment by Alfredo Bencomo (Bitbucket: bencomo).


Neil, my colleague Addisu, actually pointed out that you are probably looking for video feed from RGBD cameras, which he is currently reviewing. Here is the PR for your reference:

gazebosim/ros_gz#17

@osrf-migration
Copy link
Author

Original comment by Derek Knowles (Bitbucket: dknowles-ssci).


Alfredo Bencomo (bencomo) I've gotten to the same point as Neil. Running the command ign launch -v 4 virtual_stix.ign robotName1:=X1 robotConfig1:=X1_SENSOR_CONFIG_1 doesn’t seem to display any images even if I open the “Image display” window.

rostopic list shows that the /X1/front/image_raw topic exists, but nothing seems to be publishing to it.

@osrf-migration
Copy link
Author

Original comment by Alfredo Bencomo (Bitbucket: bencomo).


Derek Knowles (dknowles-ssci) do you get these messages on the console?

[Err] [SceneManager.cc:111] Parent entity with Id: [1] not found. Not adding model visual with ID[254] and name [X1] to the rendering scene.
[Err] [SceneManager.cc:189] Parent entity with Id: [255] not found. Not adding visual: [256]

@osrf-migration
Copy link
Author

Original comment by Martin Dlouhy (Bitbucket: robotikacz).


I am still stuck at

martind@martind-Lenovo-G580:~$ sudo apt-get install build-essential cmake libusb-dev lsb-release mercurial pkg-config python ignition-blueprint ros-melodic-desktop ros-melodic-tf2-sensor-msgs ros-melodic-robot-localization ros1-ign-bridge ros-melodic-ros-control ros-melodic-twist-mux
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
cmake is already the newest version (3.10.2-1ubuntu2).
libusb-dev is already the newest version (2:0.1.12-31).
lsb-release is already the newest version (9.20170808ubuntu1).
pkg-config is already the newest version (0.29.1-0ubuntu2).
python is already the newest version (2.7.15~rc1-1).
mercurial is already the newest version (4.5.3-1ubuntu2.1).
ros1-ign-bridge is already the newest version (0.2.2-1~bionic).
ros-melodic-desktop is already the newest version (1.4.1-0bionic.20190601.025714).
ros-melodic-robot-localization is already the newest version (2.6.4-0bionic.20190601.021007).
ros-melodic-ros-control is already the newest version (0.15.1-0bionic.20190601.015602).
ros-melodic-tf2-sensor-msgs is already the newest version (0.6.5-0bionic.20190601.020521).
ros-melodic-twist-mux is already the newest version (3.1.0-1bionic.20190601.020555).
The following packages were automatically installed and are no longer required:
  libllvm6.0 x11proto-dri2-dev x11proto-gl-dev
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  ignition-gazebo2
The following NEW packages will be installed:
  ignition-blueprint ignition-gazebo2
0 upgraded, 2 newly installed, 0 to remove and 577 not upgraded.
Need to get 0 B/55.6 kB of archives.
After this operation, 760 kB of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 280048 files and directories currently installed.)
Preparing to unpack .../ignition-gazebo2_2.1.0~pre2-1~bionic_amd64.deb ...
Unpacking ignition-gazebo2 (2.1.0~pre2-1~bionic) ...
dpkg: error processing archive /var/cache/apt/archives/ignition-gazebo2_2.1.0~pre2-1~bionic_amd64.deb (--unpack):
 trying to overwrite '/usr/bin/ign-gazebo', which is also in package ignition-gazebo 1.1.0-1~bionic
Selecting previously unselected package ignition-blueprint.
Preparing to unpack .../ignition-blueprint_1.0.0-1~bionic_amd64.deb ...
Unpacking ignition-blueprint (1.0.0-1~bionic) ...
Errors were encountered while processing:
 /var/cache/apt/archives/ignition-gazebo2_2.1.0~pre2-1~bionic_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

but it seems that it is my local problem. Before I run “sudo apt-get remove ignition-blueprint”, removed old “subt_ws” (there was pointing old gazebo .bash init, so it had sense) and rebooted … I suppose that I have to clear all caches??

@osrf-migration
Copy link
Author

Original comment by Alfredo Bencomo (Bitbucket: bencomo).


Martin Dlouhy (robotikacz) Run these commands before you run the > sudo apt-get install build-essential cmake … …

sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get install python3-vcstool python3-colcon-common-extensions mercurial
sudo apt-get install build-essential cmake libusb-dev lsb-release mercurial pkg-config python ignition-blueprint ros-melodic-desktop ros-melodic-tf2-sensor-msgs ros-melodic-robot-localization ros1-ign-bridge ros-melodic-ros-control ros-melodic-twist-mux

@osrf-migration
Copy link
Author

Original comment by Hector Escobar (Bitbucket: hector_escobar).


I got to the point where Neil and Derek are. I do get images in the /X1/front/image_raw but only through another terminal running rqt. None of the vehicle configurations seem to have an RGBD camera yet.

I don’t seem to be able to find the Image Display window or option to pop display it in Gazebo.

@osrf-migration
Copy link
Author

Original comment by Hector Escobar (Bitbucket: hector_escobar).


I am able to display with the Image Display window. The scroll bar doesn’t work for me, only the scroll with the mouse so the option was hidden.

@osrf-migration
Copy link
Author

Original comment by Derek Knowles (Bitbucket: dknowles-ssci).


Alfredo Bencomo (bencomo) Yes, similar ones. I did a fresh subt_ws install this morning and got the same errors.

I first get the below errors that have already been mentioned:

# Near the start
[Err] [LevelManager.cc:134] Could not find a plugin tag with name ignition::gazebo. Levels and distributed simulation will not work
# And later
[Err] [VisibilityTable.cc:57] Unable to populate visibility graph using path[/home/subt-derek/subt_ws/install/share/subt_ign/worlds/virtual_stix.dot]
[Err] [VisibilityRfModel.cc:36] Unable to load visibility table data files

And then later SceneManager errors:

[Err] [SceneManager.cc:108] Parent entity with Id: [1] not found. Not adding model: [254]
[Err] [SceneManager.cc:148] Parent entity with Id: [254] not found. Not adding link: [255]
[Err] [SceneManager.cc:148] Parent entity with Id: [254] not found. Not adding link: [281]
[Err] [SceneManager.cc:148] Parent entity with Id: [254] not found. Not adding link: [284]
[Err] [SceneManager.cc:148] Parent entity with Id: [254] not found. Not adding link: [287]
[Err] [SceneManager.cc:148] Parent entity with Id: [254] not found. Not adding link: [290]
[Err] [SceneManager.cc:186] Parent entity with Id: [255] not found. Not adding visual: [256]
[Err] [SceneManager.cc:186] Parent entity with Id: [255] not found. Not adding visual: [257]
[Err] [SceneManager.cc:186] Parent entity with Id: [255] not found. Not adding visual: [258]
[Err] [SceneManager.cc:186] Parent entity with Id: [255] not found. Not adding visual: [259]
[Err] [SceneManager.cc:186] Parent entity with Id: [255] not found. Not adding visual: [260]
[Err] [SceneManager.cc:186] Parent entity with Id: [255] not found. Not adding visual: [261]
[Err] [SceneManager.cc:186] Parent entity with Id: [255] not found. Not adding visual: [262]
[Err] [SceneManager.cc:186] Parent entity with Id: [255] not found. Not adding visual: [263]
[Err] [SceneManager.cc:186] Parent entity with Id: [255] not found. Not adding visual: [264]
[Err] [SceneManager.cc:186] Parent entity with Id: [255] not found. Not adding visual: [265]
[Err] [SceneManager.cc:186] Parent entity with Id: [255] not found. Not adding visual: [266]
[Err] [SceneManager.cc:186] Parent entity with Id: [255] not found. Not adding visual: [267]
[Err] [SceneManager.cc:186] Parent entity with Id: [255] not found. Not adding visual: [268]
[Err] [SceneManager.cc:186] Parent entity with Id: [255] not found. Not adding visual: [269]
[Err] [SceneManager.cc:186] Parent entity with Id: [281] not found. Not adding visual: [282]
[Err] [SceneManager.cc:186] Parent entity with Id: [284] not found. Not adding visual: [285]
[Err] [SceneManager.cc:186] Parent entity with Id: [287] not found. Not adding visual: [288]
[Err] [SceneManager.cc:186] Parent entity with Id: [290] not found. Not adding visual: [291]
[Err] [SceneManager.cc:441] Parent entity with Id: [255] not found. Not adding light: [274]
[Err] [SceneManager.cc:441] Parent entity with Id: [255] not found. Not adding light: [275]
[Err] [SceneManager.cc:441] Parent entity with Id: [255] not found. Not adding light: [276]
[Err] [SceneManager.cc:441] Parent entity with Id: [255] not found. Not adding light: [277]
[Err] [RenderUtil.cc:267] Failed to create sensor for entity [279]. Parent not found.
[Err] [RenderUtil.cc:267] Failed to create sensor for entity [280]. Parent not found.

@osrf-migration
Copy link
Author

Original comment by Alfredo Bencomo (Bitbucket: bencomo).


Hi everyone,

Several ignition packages have been updated the last few days. Therefore, the fastest way to get everyone with the latest stable code-base, it’s to just execute the commands below again:

sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get upgrade -y
sudo reboot

After that, just open one single Terminal window and you should be able to spawn four vehicles/agents suing these commands:

source /opt/ros/melodic/setup.bash

source ~/subt_ws/install/setup.bash

ign launch -v 4 virtual_stix.ign robotName1:=X1 robotConfig1:=X1_SENSOR_CONFIG_1 robotName2:=X2 robotConfig2:=X2_SENSOR_CONFIG_1 robotName3:=X3 robotConfig3:=X3_SENSOR_CONFIG_1 robotName4:=X4 robotConfig4:=X4_SENSOR_CONFIG_1

@osrf-migration
Copy link
Author

Original comment by Hector Escobar (Bitbucket: hector_escobar).


Alfredo Bencomo (bencomo) ,

That worked for me and I am able to spawn and move the 4 vehicles around. The control is not exactly mapped as you describe in the ExampleSetup. The lights are not mapped and the controls for the drone are not quite right but I guess we can work with it.

Thanks,

Hector.

@osrf-migration
Copy link
Author

Original comment by Alfredo Bencomo (Bitbucket: bencomo).


Hector, I’m glad it's now working for you. Regarding the controller, we’re going to update the content of the Example Setup page to explain how to configure the Logitech F310 or other controllers. Currently, the PS3 controller is the one set as the default.

@osrf-migration
Copy link
Author

Original comment by Adam Uccello (Bitbucket: uccellap).


Hi Alfredo,

I am able to launch a robot and control it with the joystick (although it’s quite slow). However, none of the laser scan data is showing up. The IGN output claims its publishing it:

[Msg] Publishing laser scans on [/model/X2/front_scan]

But rostopic doesn’t show it:

developer@docker:~/subt_ws/src/subt/subt_ign/launch$ rostopic list
/X1/cmd_vel
/X1/comm
/X1/light
/X1/select
/X2/cmd_vel
/X2/comm
/X2/command/motor_speed
/X2/front/image_raw
/X2/imu/data
/X2/light
/X2/pose
/X2/select
/X3/cmd_vel
/X3/comm
/X3/light
/X3/select
/X4/cmd_vel
/X4/comm
/X4/light
/X4/select
/clock
/diagnostics
/joy
/rosout
/rosout_agg
/subt/score
/tf
/tf_static

Is that expected to be working at this point? If not, do you have any idea when it might be available?

Thanks!
-Adam

@osrf-migration
Copy link
Author

Original comment by Alfredo Bencomo (Bitbucket: bencomo).


Issue #72 was marked as a duplicate of this issue.

@osrf-migration
Copy link
Author

Original comment by Alfredo Bencomo (Bitbucket: bencomo).


Hi Adam,

Laser scans will be added to the launch configuration very soon. In the meantime, just add this node into your …/subt_ros/launch/vehicle_topics.launch file.

@osrf-migration
Copy link
Author

Original comment by Jon Fink (Bitbucket: jonfink-arl).


Thanks Alfredo, that snippet added to vehicle_topics.launch was able to get me laser scan data. This raises two additional questions:

  1. Is there a similar snippet that will work for the 3D LIDAR configurations?
  2. The TF frame data being published from Ignition seems to be wrong (virtual_stix/X1/base) rather than X1/base (maybe this doesn’t matter if all sensor data is going to be published in the base frame of the robot (rather than individual sensor frames)

@osrf-migration
Copy link
Author

Original comment by Arthur Schang (Bitbucket: Arthur Schang).


Jon Fink (jonfink-arl)

Check out issue #77. The data type is actually sensor_msgs::LaserScan as opposed to sensor_msgs::PointCloud2. That should work to get 3D data in a format you will be not very pleased with.

@osrf-migration
Copy link
Author

Original comment by Alfredo Bencomo (Bitbucket: bencomo).


Hi Jon,

3D LiDAR is in progress right now. It should be available/merged sometime next week. I’ll keep you posted.

• 3D Lidar /<ROBOT_NAME>/points sensor_msgs/PointCloud2 - in progress

I also noticed the ‘virtual_stix' prefix when I was testing with Rviz. We’re gonna look into that. Thank you for pointing that out as well.

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


  • set assignee_account_id to "5cf75629ff02b50ea27b2817"
  • set assignee to "bencomo (Bitbucket: bencomo)"

@osrf-migration
Copy link
Author

Original comment by Alfredo Bencomo (Bitbucket: bencomo).


  • changed state from "new" to "resolved"

Neil, I'm resolving this issue since you and other are now able to launch the sim with agents.

@osrf-migration
Copy link
Author

Original comment by Sarah Kitchen (Bitbucket: snkitche).


I’m not sure this issue should be marked as resolved yet. I was following this thread last week and eventually able to launch and teleoperate agents with ign launch team.ign. I just pulled the current subt master and am running into problems with launching and operating the agents again.

Issues include (in no particular order):

  • Trying to launch Image Display causes the Ignition GUI to shutdown (but does not kill the process). This has only happened to me once so far with Image Display, but has happened with other selections from the upper right menu (Publisher, GZScene3D) as well:
[GUI] [Wrn] [Application.cc:649] [QT] file::/ImageDisplay/ImageDisplay.qml:73:5: QML Image: Invalid image provider: image://plugin9985imagedisplay/cpv0v
[GUI] [Msg] Added plugin [Image display] to main window
/usr/lib/ruby/ignition/cmdlaunch1.rb:202: [BUG] Segmentation fault at 0x0000000000000018
  • Launching single X1 with launch instructions here: https://osrf-migration.github.io/subt-gh-pages/#!/osrf/subt/wiki/tutorials/ExampleSetup - Does this agent launch with both sensors or just the optical camera at this time?
  • Agents do not spawn when using ign launch team.ign anymore. I am able to use the joystick controls if I launch agents with environment variables in the command line, and then in a separate terminal launch team.ign to turn on the controller. If this is the intended process, your wiki should be updated to reflect it. Similarly, I was able to run the subt_seed controller by launching an agent with name X1_1 using environment variables and the virtual_stix.ign environment, and then do roslaunch subt_seed x1.launch No agent was launched if I just used ign launch virtual_stix.ign and in a separate terminal roslaunch subt_seed x1.launch. Again, the wiki should be updated to reflect the correct process.
  • I have not been able to launch agents within competition.ign today, either in the command line or with ign launch team.ign. Last week, I was able to get as far as Neil, and when teleoperating an X2 in the tunnel did see the dynamic loading of new tunnel sections (nice!)
  • They physics seems really strange on the platform. There does not seem to be enough friction.
  • The UAVs can’t really be teleoperated with the Logitech with the current set-up.
  • Is there no way to control where the agents spawn from the command line? If we can’t launch agents with a .launch or .ign file, does that mean we simply aren’t allowed to do this?
  • Topic echo in ignition GUI does not display any messages
  • I tried launching 8 X2’s with different names. I also saw the camera flipping behavior in Image Display described in a different issue. Otherwise, I only ever saw the camera from one agent, no matter which namespace I switched to in the GUI.

@osrf-migration
Copy link
Author

Original comment by Alfredo Bencomo (Bitbucket: bencomo).


Sarah Kitchen (snkitche) Would you mind opening a separate issue for that? e.g. “Launching Image Display causes the Ignition GUI to shutdown” . Thanks!

@osrf-migration
Copy link
Author

Original comment by Sarah Kitchen (Bitbucket: snkitche).


Will do, and I see the concerns about the wiki and competition.ign are being addressed in issue #82 (#82)

@osrf-migration
Copy link
Author

Original comment by Alfredo Bencomo (Bitbucket: bencomo).


Thank you, Sarah. We will triage yours soon and provide you with an update. Cheers!

@osrf-migration
Copy link
Author

Original comment by Alfredo Bencomo (Bitbucket: bencomo).


  • changed state from "resolved" to "closed"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working major
Projects
None yet
Development

No branches or pull requests

1 participant