Can key_teleop be use with ROS Melodic and how can I install the package?

asked 2022-03-02 01:33:58 -0500

dual-swordsman gravatar image

updated 2022-03-02 01:56:57 -0500

Hi everyone, I wanted to try to use the key_teleop ROS package (http://wiki.ros.org/key_teleop) to control my Arduino controlled robot. However, I didn't find any reliable tutorial for this and I'm stuck in a loop because the package failed to compiled when I used catkin_make. My question and details are as below:

1) My system specifications:

  • Jetson Xavier NX
  • Ubuntu 18.04LTS
  • Python 2.7
  • ROS Melodic

2) My error putting the package file in catkin/src and using catkin_make:

Base path: /home/mic-710aix/catkin_ws

Source space: /home/mic-710aix/catkin_ws/src

Build space: /home/mic-710aix/catkin_ws/build

Devel space: /home/mic-710aix/catkin_ws/devel

Install space: /home/mic-710aix/catkin_ws/install

#

Running command: "cmake /home/mic-710aix/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/mic-710aix/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/mic-710aix/catkin_ws/install -G Unix Makefiles" in "/home/mic-710aix/catkin_ws/build"

#

-- Using CATKIN_DEVEL_PREFIX: /home/mic-710aix/catkin_ws/devel

-- Using CMAKE_PREFIX_PATH: /home/mic-710aix/catkin_ws/devel;/opt/ros/melodic

-- This workspace overlays: /home/mic-710aix/catkin_ws/devel;/opt/ros/melodic

-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "2")

-- Using PYTHON_EXECUTABLE: /usr/bin/python2

-- Using Debian Python package layout

-- Using empy: /usr/bin/empy

-- Using CATKIN_ENABLE_TESTING: ON

-- Call enable_testing()

-- Using CATKIN_TEST_RESULTS_DIR: /home/mic-710aix/catkin_ws/build/test_results

-- Found gtest sources under '/usr/src/googletest': gtests will be built

-- Found gmock sources under '/usr/src/googletest': gmock will be built

-- Found PythonInterp: /usr/bin/python2 (found version "2.7.17")

-- Using Python nosetests: /usr/bin/nosetests-2.7

-- catkin 0.7.29

-- BUILD_SHARED_LIBS is on

-- BUILD_SHARED_LIBS is on

-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-- ~~ traversing 8 packages in topological order:

-- ~~ - key_teleop (unknown)

CMake Warning at /opt/ros/melodic/share/catkin/cmake/catkin_workspace.cmake:89 (message):

Unknown build type 'ament_python' for package 'key_teleop'

Call Stack (most recent call first):

CMakeLists.txt:69 (catkin_workspace)

-- ~~ - mouse_teleop (unknown)

CMake Warning at /opt/ros/melodic/share/catkin/cmake/catkin_workspace.cmake:89 (message):

Unknown build type 'ament_python' for package 'mouse_teleop'

Call Stack (most recent call first):

CMakeLists.txt:69 (catkin_workspace)

-- ~~ - joy_teleop (unknown)

CMake Warning at /opt/ros/melodic/share/catkin/cmake/catkin_workspace.cmake:89 (message):

Unknown build type 'ament_python' for package 'joy_teleop'

Call Stack (most recent call first):

CMakeLists.txt:69 (catkin_workspace)

-- ~~ - teleop_tools (plain cmake)

-- ~~ - teleop_tools_msgs (plain cmake)

-- ~~ - agv-slam-ros

-- ~~ - ros_basics_tutorials

-- ~~ - ros_essentials_cpp

-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CMake Error at /opt/ros/melodic/share/catkin/cmake/catkin_workspace.cmake:100 (message):

This workspace contains non-catkin packages in it, and catkin cannot build

a non-homogeneous workspace without isolation. Try the

'catkin_make_isolated' command instead.

Call Stack (most recent call first):

CMakeLists.txt:69 (catkin_workspace)

-- Configuring incomplete, errors occurred!

See also "/home/mic-710aix/catkin_ws/build/CMakeFiles/CMakeOutput.log".

See also "/home/mic-710aix/catkin_ws/build/CMakeFiles/CMakeError.log".

Invoking "cmake" failed

3) My question:

1) How do I install this package?

2) If using catkin_make, why it failed when I try to catkin_make it?

3) Is this package not supported for ROS Melodic as I didn't find a ROS Melodic devel in the github?

Please help me. Thank you.

edit retag flag offensive close merge delete

Comments

What's the error message? Can you udpate the question with the same?

skpro19 gravatar image skpro19  ( 2022-03-02 01:42:02 -0500 )edit

I have updated the question with error message. Thank you.

dual-swordsman gravatar image dual-swordsman  ( 2022-03-02 01:57:22 -0500 )edit

You can format a block of code by selecting it and pressing Ctrl + K.

skpro19 gravatar image skpro19  ( 2022-03-03 07:11:56 -0500 )edit