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

ROS Melodic (Ubuntu 18) #31

Open
silvermind20 opened this issue Jul 4, 2019 · 19 comments
Open

ROS Melodic (Ubuntu 18) #31

silvermind20 opened this issue Jul 4, 2019 · 19 comments

Comments

@silvermind20
Copy link

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

@grassjelly
Copy link
Member

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
Copy link
Member

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

@sdey76
Copy link

sdey76 commented Jul 28, 2019

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.

@grassjelly
Copy link
Member

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

@karthikbalu
Copy link

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

@kindofausername
Copy link

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?

@grassjelly
Copy link
Member

grassjelly commented Sep 6, 2019

@arminf82 Yes, you can build it from source

@TCIII
Copy link

TCIII commented Sep 25, 2019

@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?

@grassjelly
Copy link
Member

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.

@TCIII
Copy link

TCIII commented Sep 25, 2019

@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
Copy link

TCIII commented Sep 26, 2019

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
Copy link

TCIII commented Sep 26, 2019

@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

@imeshsps
Copy link

@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.

@Geekgineer
Copy link

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

@valentinpatrascu
Copy link

@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.

@quicktwit
Copy link

@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

@chopsuey5000
Copy link

chopsuey5000 commented Jun 26, 2020

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.

@ngadt12
Copy link

ngadt12 commented Nov 29, 2020

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

@saisd138
Copy link

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

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

No branches or pull requests