PDA

View Full Version : ROS Irobot create 2 node/driver Noob installation



singularity
06-17-2016, 05:38 PM
Hello,
I have 2 probably stupid questions but could definitely use some input.

Ubuntu 16.04 ROS Kinetic installed from this tutorial http://wiki.ros.org/kinetic/Installation/Ubuntu

1. I am trying to install a "node" for the Irobot create 2 on ROS and running into some problems (first time ROS user). I think my installation is right for the most part but I think I am missing a dependency or have a directory messed up. Here is a link to the node/driver I am trying to install. https://github.com/MirkoFerrati/irobotcreate2ros There is a serial missing error below that is making think I have something installed wrong. What am I doing wrong here?

2. I tried reading the tutorial on the catkin ws installations but don't think I missed something. If I plan to use this should it be installed in build, devel or install?

catkin_make
Base path: /home/laptop/catkin_ws
Source space: /home/laptop/catkin_ws/src
Build space: /home/laptop/catkin_ws/build
Devel space: /home/laptop/catkin_ws/devel
Install space: /home/laptop/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/laptop/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/laptop/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/laptop/catkin_ws/devel;/opt/ros/kinetic
-- This workspace overlays: /home/laptop/catkin_ws/devel;/opt/ros/kinetic
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/laptop/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.1
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 1 packages in topological order:
-- ~~ - irobotcreate2
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'irobotcreate2'
-- ==> add_subdirectory(irobotcreate2ros-master)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
Could not find a package configuration file provided by "serial" with any
of the following names:


serialConfig.cmake
serial-config.cmake


Add the installation prefix of "serial" to CMAKE_PREFIX_PATH or set
"serial_DIR" to a directory containing one of the above files. If "serial"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
irobotcreate2ros-master/CMakeLists.txt:17 (find_package)




-- Could not find the required component 'serial'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "serial" with any
of the following names:


serialConfig.cmake
serial-config.cmake


Add the installation prefix of "serial" to CMAKE_PREFIX_PATH or set
"serial_DIR" to a directory containing one of the above files. If "serial"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
irobotcreate2ros-master/CMakeLists.txt:17 (find_package)




-- Configuring incomplete, errors occurred!
See also "/home/laptop/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/laptop/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:290: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

KevinO
06-17-2016, 06:43 PM
You need the ROS serial package in order for it to build.

Did you try?


sudo apt-get install ros-kinetic-serial

If that doesn't work. Look here.
http://wiki.ros.org/serial

singularity
06-18-2016, 12:38 AM
Found it.

sudo apt-get install ros-kinetic-serialand https://github.com/MirkoFerrati/irobotcreate2ros/issues/8 This resolved it. Successfully installed.