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 extra installation steps on Ubuntu 20.04 #115

Open
soudy opened this issue Sep 16, 2021 · 5 comments
Open

Gazebo extra installation steps on Ubuntu 20.04 #115

soudy opened this issue Sep 16, 2021 · 5 comments
Assignees

Comments

@soudy
Copy link

soudy commented Sep 16, 2021

The instructions for installing Gazebo on Ubuntu 20.04 on the wiki are missing the following steps (taken from http://gazebosim.org/tutorials?tut=install_ubuntu):

  1. Setup your computer to accept software from packages.osrfoundation.org.
sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
  1. Setup keys
wget https://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
  1. Update database
sudo apt-get update

Only then will sudo apt-get install libgazebo11-dev gazebo11 work. Not sure if Gazebo is in the standard Ubuntu/Debian repositories for other versions, but on 20.04 they aren't, so these extra steps are necessary.

I also had to install the following packages to build revolve: libpqxx-dev libyaml-cpp-dev libnlopt-dev libopencv-dev

@surgura
Copy link
Collaborator

surgura commented Sep 16, 2021

Thank you for reporting. I will do another installation pass on a clean Ubuntu 20.04 and see if I reproduce & update the docs

@surgura surgura self-assigned this Sep 16, 2021
@soudy
Copy link
Author

soudy commented Sep 17, 2021

Some other gotcha's I encountered while installing that might save others some debugging:

  1. Had to install nlopt from source (https://github.com/stevengj/nlopt). Package libnlopt-dev in Ubuntu 20.04 repo didn't get recognized correctly by CMake somehow.
  2. libyaml-cpp-dev from repo has a pathing error: in /usr/lib/x86_64-linux-gnu/cmake/yaml-cpp/yaml-cpp-config.cmake YAML_CPP_INCLUDE_DIR is set to "${YAML_CPP_CMAKE_DIR}/../../../../../include", which is one directory too high and caused errors. Fixed by settings YAML_CPP_INCLUDE_DIR to "${YAML_CPP_CMAKE_DIR}/../../../../include" (one ../ removed so it points correctly at /usr/include).

@surgura
Copy link
Collaborator

surgura commented Sep 17, 2021

hmm weird. My experience is that libnlop-dev is enough. Same for yaml. I'm also running 20.04 without any problems with a fresh revolve installation from last month. Oh well, I'll do a cleanup of dependencies soon to hopefully resolve these issues.

@surgura
Copy link
Collaborator

surgura commented Sep 17, 2021

Correction I run 20.10

@soudy
Copy link
Author

soudy commented Sep 17, 2021

I should have maybe noted that this is on Babak's fork https://github.com/bobykhani/revolve on the LinearActuator branch. I tried using the CMake files from this repo's master branch, however it wasn't a mistake in the CMake files but in the system libraries setup. Could be some slight versioning difference between 20.04 and 20.10 that messes some things up, I'm not sure.

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

No branches or pull requests

2 participants