ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Downloaded packages don't work

asked 2016-10-12 18:20:53 -0500

rotzpippm gravatar image

updated 2022-02-13 17:02:22 -0500

lucasw gravatar image

Dear all,

for the outstep i have to clarify that I'm new to ROS and C++.

I installed my ROS Indigo on UBUNTU 14.04 as it is done in the tutorials. (full-desktop) and afterwards i added the path of the setup.bash to my .bashrc file to source it automatically for each termial startup. I also created my own catkin workspace as shown in the tutorials (catkin_init_workspace, catkin_make and so on) and afterwards i sourced the setup.bash file from my devel folder of the workspace i created. When I echo ROS_PACKAGE_PATH it looks like that:


Sometimes I sourced the setup.bash file of my workspace by hand and sometimes (I already tried a lot) I added the command to the .bashrc file. The ROS_PACKAGE_PATH always looks like above.

After playing around with turtlesim and so on I wanted to get a driver for a gps board i have (ublox). So i changed the directory to my workspace via

cd /my_catkin_ws_path/src

and then cloned the source code (it says it is a catkinized version -- what does this mean?) to it with

git clone

Then i installed the dependencies of the package with

rosdep install ublox

and finally i built it with


Afterwards i checked the rospack profile and ublox was there. I also checked rospack list and it was there (ublox_gps, ublox_msgs and ublox_serialization).

This was the moment when i thought i can run a ublox node. Should this be the moment? Did i forget anything? Because it just don't works, however i try to. I tried: rosrun ublox_gps ublox_gps_node and some other versions. When i go into the ublox_gps CMakeLists.txt it says "add_executeable(ublox_gps_node src/node.cpp)". Rosrun tells me then that it couldn't find executable named ublox_gps_node below ...ublox/ublox_gps.

At this moment i said to myself, ok let's try another one. I took the book "Learning ROS for Robotics Programming" and tried to install the driver for the first sensor which is used in this book, a joystick, like it is done in the book:

sudo apt-get install ros-indigo-joystick-drivers
rosstack profile & rospack profile

There was no joystick package in any of the profiles. Is this normal?

rosrun joy joy_node

also didn't work! It says: [ERROR] [1476314154.407197494]: Couldn't open joystick /dev/input/js0. Will retry every second.

What am I doing wrong? Can anyone help me?

edit retag flag offensive close merge delete


joystick may not work if you don't have a joystick plugged in. Try running the pre-compiled talker: rosrun roscpp_tutorials talker , because it doesn't have any hardware dependencies.

ahendrix gravatar image ahendrix  ( 2016-10-13 01:01:53 -0500 )edit

The talker works. Listener also. I did not plug in a joystick, but i plugged in the gps board and it also did't work?

rotzpippm gravatar image rotzpippm  ( 2016-10-13 03:40:52 -0500 )edit

How is the GPS module connected to your computer? Via USB? Check if it is detected using lsusb

A_KN gravatar image A_KN  ( 2016-10-13 10:06:47 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-10-14 04:04:08 -0500

rotzpippm gravatar image

updated 2016-10-14 04:04:51 -0500

It's running now. I did the following: I installed nmea_navsat_driver package and tried to run it, I did this as told on the wiki ros page for this package:

rosrun nmea_navsat_driver nmea_serial_driver

but it didn't run because I had no permission for dev/ttyUSB0. So after i searched for this error i added my user account to the dialout group. After that I was able to run this driver and i received something (no valid data). Now i went back to the ublox driver and changed in the launch file the port to ttyUSB0 which was by default set to ttyACM0 (or something like this). Then I did the following:

roslaunch /home/the_whole_fu**ing_path/src/ublox/ublox_gps/launch/ublox_gps.launch

and it's running now! I really dont know if this is some kind of proper procedure (maybe somebody knows?) but it's working now!

edit flag offensive delete link more

Question Tools



Asked: 2016-10-12 18:20:53 -0500

Seen: 463 times

Last updated: Oct 14 '16