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

pointcloud_to_laserscan for ROS1 kinetic

asked 2022-10-15 16:20:06 -0500

distro gravatar image

updated 2022-10-19 01:12:49 -0500

I'm looking for the pointcloud_to_laserscan package for ROS1 kinetic. Does anyone know a repo for this? I tried the link on the ROS wiki but couldn't find a kinetic branch. I try the indigo branch as adviced but find problems in both trying to catkin_make and catkin_build (Yes I am aware I can't interchange the two once I have built with one. I simply made two separate workspaces and did the following tests). For workspace made by catkin_make. The package in question gives this error when I try to catkin_make:

Base path: /home/turtlebot/testws
Source space: /home/turtlebot/testws/src
Build space: /home/turtlebot/testws/build
Devel space: /home/turtlebot/testws/devel
Install space: /home/turtlebot/testws/install
####
#### Running command: "make cmake_check_build_system" in "/home/turtlebot/testws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/turtlebot/testws/devel
-- Using CMAKE_PREFIX_PATH: /home/turtlebot/catkin_ws/devel;/opt/ros/kinetic
-- This workspace overlays: /home/turtlebot/catkin_ws/devel;/opt/ros/kinetic
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.12", 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/turtlebot/testws/build/test_results
-- Found gtest sources under '/usr/src/gmock': gtests will be built
-- Found gmock sources under '/usr/src/gmock': gmock will be built
-- Found PythonInterp: /usr/bin/python2 (found version "2.7.12") 
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.29
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 1 packages in topological order:
-- ~~  - pointcloud_to_laserscan (plain cmake)
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CMake Error at /opt/ros/kinetic/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/turtlebot/testws/build/CMakeFiles/CMakeOutput.log".
See also "/home/turtlebot/testws/build/CMakeFiles/CMakeError.log".
Makefile:318: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1

For the workspace made with catkin build this error occurs when I try to build:

-----------------------------------------------------------------------------
Profile:                     default
Extending:             [env] /home/turtlebot/catkin_ws/devel:/opt/ros/kinetic
Workspace:                   /home/turtlebot/test_ws
-----------------------------------------------------------------------------
Build Space:        [exists] /home/turtlebot/test_ws/build
Devel Space:        [exists] /home/turtlebot/test_ws/devel
Install Space:      [unused] /home/turtlebot/test_ws/install
Log Space:          [exists] /home/turtlebot/test_ws/logs
Source Space:       [exists] /home/turtlebot/test_ws/src
DESTDIR:            [unused] None
-----------------------------------------------------------------------------
Devel Space Layout:          linked
Install Space Layout:        None
-----------------------------------------------------------------------------
Additional CMake Args:       None
Additional Make Args:        None
Additional catkin Make Args: None
Internal Make Job Server:    True
Cache Job Environments:      False
-----------------------------------------------------------------------------
Whitelisted Packages:        None
Blacklisted Packages:        None
-----------------------------------------------------------------------------
Workspace configuration appears valid.
-----------------------------------------------------------------------------
[build] Found '1' packages in 0.0 seconds.                                                          
[build] Updating package table.                                                                     
[build] Warning: Skipping package `pointcloud_to_laserscan` because it has an unsupported package build type: `ament_cmake`
[build] Note: Available build types:                                                                
[build]  - `catkin`                                                                                 
[build]  - `cmake`                                                                                  
[build] Summary: All 0 packages succeeded!                                                          
[build]   Ignored:   1 packages were skipped or are blacklisted.                                    
[build]   Warnings:  None.                                                                          
[build]   Abandoned: None.                                                                          
[build]   Failed:    None ...
(more)
edit retag flag offensive close merge delete

Comments

Can you add output of git status in the package folder? You have

Warning: Skipping package pointcloud_to_laserscan because it has an unsupported package build type: ament_cmake

so it is ROS2 version... Branch indigo has catkin

Did you try suggested catkin_make_isolated?

ljaniec gravatar image ljaniec  ( 2022-10-19 05:24:31 -0500 )edit

@ljaniec The ROS wiki link akes me to ROS2 version as I told you, you can try it yourself. How do I output the git status?I did not try catkin_make_isolated.

distro gravatar image distro  ( 2022-10-19 14:01:19 -0500 )edit

Can you use git? You have to check out to the correct repository branch - git clone https://github.com/ros-perception/pointcloud_to_laserscan.git in your catkin_ws folder, then in the folder you use git status - you should see On branch rolling. Use git checkout indigo-devel, then git status again - you should see On branch indigo-devel this time. This is ROS1 version you have to try to build & report what you see when the package is built.

ljaniec gravatar image ljaniec  ( 2022-10-19 15:23:04 -0500 )edit

@ljaniec you were right, I forgot I have to type the command to clone the repo from a specific branch that is not the master. Now that I clone the correctly, I am trying to use it woth turtlebot and kinect camera but the pointcloud_to_laserscan node is unable to receive data from the pointcloud topic. I made another question about it here if you have the time.

distro gravatar image distro  ( 2022-10-20 02:46:58 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2022-10-17 03:13:02 -0500

duck-development gravatar image

Try this command to get the right branch

git clone https://github.com/ros-perception/pointcloud_to_laserscan.git --branch indigo-devel --single-branch
edit flag offensive delete link more

Comments

As in younoutput is something with ament_cmake you definitely has the main brunch and not the indigo-devel.

You may delete the workspace a new wine clonen with the cmd from my answer and compile again.

duck-development gravatar image duck-development  ( 2022-10-19 01:54:22 -0500 )edit

@duck-development thanks! I forogt I had to explicitly type the branch comand

distro gravatar image distro  ( 2022-10-20 02:47:59 -0500 )edit
0

answered 2022-10-15 17:35:09 -0500

ljaniec gravatar image

You should use ROS Index to check, it is up-to-date with most of the packages (both ROS 1 & 2):

For ROS Wiki you have to check this out:

image description

It looks like you should compile it using indigo branch from source (GitHub link above).

edit flag offensive delete link more

Comments

@Ijaniec I tried to catkin build the indigo branch but it failed.

distro gravatar image distro  ( 2022-10-15 22:00:16 -0500 )edit

Is there any chance of updating to a more recent version of ROS, or is it a static fixed system, that would potentially break if being updated? As far as I can tell ROS Kinetic is EOL since last year.

PointCloud gravatar image PointCloud  ( 2022-10-16 03:03:31 -0500 )edit

@ljaniec I just npticed that the ROS wiki for this packagfe gives a link to ROS2. is there a pointclud_to_laserscan package for ROS1?

distro gravatar image distro  ( 2022-10-16 22:14:49 -0500 )edit
1

How the build fail? We need the compile output to help you.

duck-development gravatar image duck-development  ( 2022-10-17 01:01:32 -0500 )edit

I just npticed that the ROS wiki for this packagfe gives a link to ROS2.

no, it doesn't.

It links to the repository, where the default branch is rolling. That is indeed a ROS 2 version, but not the branch you should be using. As @ljaniec mentions, you should switch to the indigo-devel branch for Kinetic.

gvdhoorn gravatar image gvdhoorn  ( 2022-10-17 02:52:04 -0500 )edit

@distro Please add the error logs shown during the build (if they are still here even after checking out to indigo-devel branch & rebuilding everything again in clean workspace)

ljaniec gravatar image ljaniec  ( 2022-10-17 07:52:38 -0500 )edit

Thanks guys for trying to help! I will provided the error when next I get to the lab.

distro gravatar image distro  ( 2022-10-17 14:58:59 -0500 )edit

@ljaniec I ave eddited my initial question to contain all the errors I encountered as I have tried to fix the problem, as you asked. Please take a look.

distro gravatar image distro  ( 2022-10-19 01:17:36 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2022-10-15 16:20:06 -0500

Seen: 228 times

Last updated: Oct 19 '22