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

Some issues on installation in ubuntu 20.04 #80

Closed
Yiqing-Gu opened this issue Sep 8, 2021 · 10 comments
Closed

Some issues on installation in ubuntu 20.04 #80

Yiqing-Gu opened this issue Sep 8, 2021 · 10 comments
Assignees
Labels
type: enhancement New feature or request type: question Further information is requested
Milestone

Comments

@Yiqing-Gu
Copy link

Yiqing-Gu commented Sep 8, 2021

Hi,

I am working on installation of CrazyS in Ubuntu 20.04. I met two problems.

  1. When I ran rosdep install --from-paths src -i, I got an error "ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies: rotors_simulator: Cannot locate rosdep definition for [rotors_hil_interface]". It seems that I do not have such a folder called "rotors_hil_interface".

  2. In part 3 "Build your workspace with python_catkin_tools", I tried to install all packages like "ros-melodic-rqt-rotors". But I got "Unable to locate package ros-melodic-rqt-rotors". Even I used "ros-noetic-rqt-rotors" and such a package does exist. However, I still got same error. I could not install all packages in part 3.

About python_catkin_tools, it seems that sudo apt install python-catkin-tools does not work in Ubuntu 20.04. I used sudo apt install python3-catkin-tools instead.

Looking for any answers. Thank you very much!

@welcome
Copy link

welcome bot commented Sep 8, 2021

Thanks for opening your first issue here! Make sure that no other issues on the same topic have already been opened!

@gsilano gsilano self-assigned this Sep 9, 2021
@gsilano gsilano added the type: question Further information is requested label Sep 9, 2021
@gsilano
Copy link
Owner

gsilano commented Sep 9, 2021

I think there was an error in the installation procedure. Did you install CrazyS from the dev/ros-melodic branch? Even if the name says "ROS Melodic", it should also be compatible with Noetic. At least I hope so.

Obviously, if you are running Ubuntu 20.04 with ROS Noetic, you cannot install the melodic packages or simply change the name of the ROS distribution. Below are the instructions to follow:

$ mkdir -p ~/catkin_ws/src
$ cd ~/catkin_ws/src
$ catkin_init_workspace  # initialize your catkin workspace
$ cd ~/catkin_ws/
$ catkin init
$ cd ~/catkin_ws/src
$ git clone -b dev/ros-melodic https://github.com/gsilano/CrazyS.git
$ git clone -b med18_gazebo9 https://github.com/gsilano/mav_comm.git
$ cd ~/catkin_ws
$ rosdep update
$ catkin build
$ echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
$ source ~/.bashrc

Hopefully, using the command sudo apt install python3-catkin-tools instead of sudo apt install python-catkin-tools shouldn't cause any problems. However, I cannot guarantee anything as it has never been tested with this ROS distro.

I hope this helps.

@fabrizzio-gz
Copy link

I'm having the same issue. After running rosdep install --from-paths src -i, I got the following error message.

ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
rotors_simulator: Cannot locate rosdep definition for [rotors_hil_interface]

I tried installing all the packages for the Noetic version (Ubuntu 20.0.4). As far as I can tell, the problem is that the rotors_simulator package can run only on Melodic (http://wiki.ros.org/rotors_simulator)

@gsilano
Copy link
Owner

gsilano commented Nov 17, 2021

As far as I know, RotorS, the drone simulator used as the basis for CrazyS, does not work with ROS Noetic. In this case, I would rather suggest opening an issue on the RotorS issue tracker. So if successful, please let us know. I will try to create a version of CrazyS for this version of ROS.

@fabrizzio-gz
Copy link

Apparently, RotorS has added support for Noetic (merged pull). However, I was unable to run it along CrazyS. I'll let you know if I find a workaround to this issue.

@Yiqing-Gu
Copy link
Author

Yiqing-Gu commented Nov 18, 2021

You can try this CrazyS. It may work for you. https://github.com/caslabuiowa/CrazyS
You need to clone its dev/ros-melodic branch.

If not, try to install the following dependencies first.

sudo apt install python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool build-essential

sudo apt-get install ros-noetic-octomap ros-noetic-octomap-mapping ros-noetic-octomap-rviz-plugins ros-noetic-octomap-server ros-noetic-octomap-msgs ros-noetic-joy ros-noetic-geodesy ros-noetic-octomap-ros ros-noetic-mavlink ros-noetic-control-toolbox

sudo apt-get install libgflags-dev

sudo apt install libgoogle-glog-dev

sudo apt-get install protobuf-compiler libprotobuf-dev

@fabrizzio-gz
Copy link

fabrizzio-gz commented Nov 18, 2021

You can try this CrazyS. It may work for you. https://github.com/caslabuiowa/CrazyS You need to clone its dev/ros-melodic branch.

If not, try to install the following dependencies first.

sudo apt install python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool build-essential

sudo apt-get install ros-noetic-octomap ros-noetic-octomap-mapping ros-noetic-octomap-rviz-plugins ros-noetic-octomap-server ros-noetic-octomap-msgs ros-noetic-joy ros-noetic-geodesy ros-noetic-octomap-ros ros-noetic-mavlink ros-noetic-control-toolbox

sudo apt-get install libgflags-dev

sudo apt install libgoogle-glog-dev

sudo apt-get install protobuf-compiler libprotobuf-dev

Thank you for your answer. Installing the dependencies you mentioned didn't solve the problem for me. The fork is a good option, thanks!

GitHub
CrazyS is an extension of the ROS package RotorS, aimed to modeling, developing and integrating the Crazyflie 2.0 - GitHub - caslabuiowa/CrazyS: CrazyS is an extension of the ROS package RotorS, ai...

@gsilano
Copy link
Owner

gsilano commented Nov 27, 2021

Hi there! This Christmas holidays, I will be working on CrazyS to make it ROS Neotic compatible. I will reale a new version as soon as it is ready.

@gsilano gsilano added the type: enhancement New feature or request label Nov 27, 2021
@gsilano gsilano added this to the 7.0.1 milestone Nov 27, 2021
@fabrizzio-gz
Copy link

Hi there! This Christmas holidays, I will be working on CrazyS to make it ROS Neotic compatible. I will reale a new version as soon as it is ready.

Great news! Thank you for your dedication and hard work.

@gsilano
Copy link
Owner

gsilano commented Dec 28, 2021

CrazyS is now available for ROS Noetic and Gazebo 11 on Ubuntu 20.04 (#89)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request type: question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants