rad icon indicating copy to clipboard operation
rad copied to clipboard

ROS Melodic (Ubuntu 18)

Open silvermind20 opened this issue 5 years ago • 19 comments

Hi, Would this work on ROS Melodic (Ubuntu 18)?

silvermind20 avatar Jul 04 '19 21:07 silvermind20

The hardware drive shouldn’t have any problem. The installer would throw an error once it hit gmapping package though as it’s not released in Melodic yet. Alternatively, you can comment it out from the installer and build it from source.

grassjelly avatar Jul 05 '19 01:07 grassjelly

Working Melodic installer here: https://github.com/linorobot/lino_install/tree/melodic https://travis-ci.org/linorobot/lino_install/builds/564405465

Few caveats:

  1. Kinect Driver's not working
  2. python-gudev 's not working

grassjelly avatar Jul 27 '19 15:07 grassjelly

Hi On BTS7960 Motor controller two enable pins. Do we need to externally give 5 volt. As the wiring has pwm ,ina inb pins in diagram.

sdey76 avatar Jul 28 '19 06:07 sdey76

@sdey76 Hi, please post your questions here: https://groups.google.com/forum/m/#!forum/linorobot .

grassjelly avatar Jul 31 '19 02:07 grassjelly

I can confirm that we managed to run linorobot melodic on Jetson Nano with few glitches with udev rules and solved it

karthikbalu avatar Aug 06 '19 09:08 karthikbalu

Working Melodic installer here: https://github.com/linorobot/lino_install/tree/melodic https://travis-ci.org/linorobot/lino_install/builds/564405465

Few caveats:

1. Kinect Driver's not working

2. python-gudev 's not working

Will everything work when I simply install the Kinect drivers on my own?

kindofausername avatar Sep 06 '19 14:09 kindofausername

@arminf82 Yes, you can build it from source

grassjelly avatar Sep 06 '19 16:09 grassjelly

@grassjelly,

I am running Ubuntu Mate 18.0.4 and the ROS Melodic-base on a Rpi 3B+.

The gmapping package is available for ROS Melodic now and I have successfully installed it.

Your https://github.com/linorobot/lino_install/tree/melodic link is broken as I get a "does not exist" message when running sudo git clone https://github.com/linorobot/lino_install/tree/melodic or am I doing something wrong?

I assume that I can run git clone https://github.com/linorobot/lino_install and then modify the install file before I run ./install base sensor?

Presently it looks like the python-gudev package is not available for Ubuntu Mate 18.0.4 and only for Ubuntu Bionic 18.0.4.

Should I be posting on your Google forum?

TCIII avatar Sep 25 '19 16:09 TCIII

Hi you should change the branch to melodic and not directly clone the link:

git clone https://github.com/linorobot/lino_install cd lino_install git checkout melodic

Once done, you can run the installer.

Hope this helps.

grassjelly avatar Sep 25 '19 17:09 grassjelly

@grassjelly,

Thanks for the suggestion, much appreciated as that is better than modifying the install file.

Any suggestions concerning installing python-gudev on Ubuntu Mate 18.0.4? I am new at Python/Linux Programming and would appreciate any help.

TCIII avatar Sep 25 '19 18:09 TCIII

Hi grassjelly,

I have attempted to install Linorobot on Ubuntu Mate/ROS Melodic on my Rpi 3B+ using the Melodic branch of lino_install.

The install runs fine until it gets to "[ 46%] Building CXX object lino_pid/CMakeFiles/pid_listen.dir/src/pid_listen.cpp.o" at which time this message appeared "c++: internal compiler error: Killed (program cc1plus)".

The build then continued to the [50%] point at which time this message appeared and the program went to the command prompt:

Makefile:140: recipe for target 'all' failed

make: *** [all] Error 2

Invoking "make -j4 -l4" failed

I am attaching a file of the failure information from [46%] to the command line prompt.

Regards, TCIII

Linorobot Install Failure Message2_20190926.txt.txt

TCIII avatar Sep 26 '19 19:09 TCIII

@grassjelly,

I would say that the Ubuntu Mate/ROS Melodic combination might not be doable at the moment. I say this because even though the ROS gmapping package is available for Melodic, there presently is no source for building and installing python-gudev for Ubuntu Mate.

I therefore would appreciate it if you could direct me to a source for a bootable image of Ubuntu 16.04 for the Rpi 3B+ if at all possible as I have not been able to find one that will work.

Update: It is my feeling that the Linorobot Project will no longer move forward until there is a source available to build python-gudev for Ubuntu Mate 18.04 and the issues I have experienced above with the lino_install have been resolved. I looked at the ros packages available for Melodic and I did not find a gmapping package. However I did find a slam-gmapping package. Are they the same, but with a different name for Melodic? I am willing to work with you to correct these issues and learn about Python and ROS at the same time.

Regards, TCIII

TCIII avatar Sep 26 '19 21:09 TCIII

@TCIII python-gudev is used to assign names to serial ports right ? I commented it out from installer file and used this guide to add names manually. So far i got ROS serial working fine. Hope this helps someone.

imeshsps avatar Dec 11 '19 07:12 imeshsps

The solution for udev rules is to build python-gudev from source

$ git clone https://github.com/nzjrs/python-gudev.git
$ cd python-gudev
$ sudo apt install libtool-bin
$ sudo apt install python-gobject-2-dev
$ ./autogen.sh 
$ make
$ sudo make install

This will install the python-gudev to your sytem so lino_udev.py can import gudev tested on Ubuntu 18.04.3

Geekgineer avatar Feb 07 '20 16:02 Geekgineer

@Geekgineer,

Hi, I also use Ubuntu 18.04.3 installed on a Nvidia Jetson Nano. I followed your set of instructions but at the ./autogen.sh command, I received the following error.

checking for GUDEV... no
configure: error: Package requirements (gudev-1.0 >= 210) were not met:

No package 'gudev-1.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GUDEV_CFLAGS
and GUDEV_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

valentinpatrascu avatar Feb 09 '20 15:02 valentinpatrascu

@Geekgineer,

Hi, I also use Ubuntu 18.04.3 installed on a Nvidia Jetson Nano. I followed your set of instructions but at the ./autogen.sh command, I received the following error.

checking for GUDEV... no
configure: error: Package requirements (gudev-1.0 >= 210) were not met:

No package 'gudev-1.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GUDEV_CFLAGS
and GUDEV_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Try this: sudo apt-get install libgudev-1.0-dev

quicktwit avatar Mar 21 '20 17:03 quicktwit

Just in case it helps someone, I've installed Linorobot in Raspberry Pi 3B with Ubuntu Mate 18.04. These are the steps i made:

Install ubuntu mate 18.04 - https://ubuntu-mate.org/download/armhf/

After the installation:

sudo apt update
sudo apt install git
sudo apt install python-pip

Install ros melodic

git clone https://github.com/linorobot/rosme
cd rosme
./install
source /opt/ros/melodic/setup.bash

Create a ROS workspace - http://wiki.ros.org/ROS/Tutorials/InstallingandConfiguringROSEnvironment

mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/
catkin_make
source devel/setup.bash

Linorobot Installation

git clone https://github.com/linorobot/lino_install
cd lino_install
git checkout melodic

uDev Rules

sudo apt install python-gobject
sudo apt install libtool-bin
sudo apt install python-gobject-2-dev
sudo apt install autoconf
sudo apt-get install libgudev-1.0-dev
git clone https://github.com/nzjrs/python-gudev.git
cd python-gudev
./autogen.sh 
make
sudo make install
rosrun lino_udev lino_udev.py
sudo cp 58-lino.rules /etc/udev/rules.d/58-lino.rules

Restart udev:

sudo service udev reload
sudo service udev restart

Confirm if the uDev rules worked:

ls /dev/linobase
ls /dev/linolidar

If the serial ports cannot be detected, restart the robot's computer and check again. Take note that freshly shipped Teensy boards has to be be programmed once before you can see its ports.

In my case i had to restart to be able to list the ports.

chopsuey5000 avatar Jun 26 '20 11:06 chopsuey5000

git clone https://github.com/linorobot/lino_install cd lino_install git checkout melodic then: cd lino_install catkin_make cd ~/linorobot_ws/ ./install 2wd rplidar source devel/setup.bash

ngadt12 avatar Nov 29 '20 08:11 ngadt12

can anyone help me out im stuck here I've been getting this error I've followed this method and im facing this error

ubuntu@ubuntu:~$ rosrun lino_udev lino_udev.py

[rospack] Error: package 'lino_udev' not found

saisd138 avatar Apr 17 '23 19:04 saisd138