Questions tagged [catkin]

catkin is the official build system of ROS. It combines CMake macros and Python scripts to provide some functionality on top of CMake's normal workflow.

254 questions
2
votes
2 answers

rosrun does not work after sourcing my own catkin workspace

I'm following the ROS-tutorial and I am facing the following behavior after creating my own package: If try to execute any installed package (e.g. any_package), I get the following error: [rosrun] Couldn't find executable named below…
millivanilli
  • 25
  • 1
  • 8
2
votes
2 answers

Catkin cannot find gtest

Since yesterday none of my packages containing tests build. Catkin complains it cannot find gtest when using catkin_add_gtests(), since GTEST_FOUND is FALSE. You can see this in the error msg below, with the custom output I added to my CMakeLists.…
PacoGG
  • 21
  • 3
2
votes
1 answer

Ros: output in console

I'm a beginner in ROS and started to learn the basics. So I have installed ROS and I am going through some tutorials. I have created two nodes (publisher and subscriber). Actually I was doing this ROS.org tutorial 1: At Step 3. Building your nodes,…
user10011764
2
votes
1 answer

c++ Linker error with static library

I am trying to include a static library that I have created with a static method but getting the following error in runtime when trying to invoke the method: [ INFO] [1528271039.635221775]: Initializing nodelet with 4 worker threads. …
Gil404
  • 711
  • 1
  • 8
  • 22
2
votes
2 answers

Can a ROS node be created outside a catkin workspace?

I want to create a ROS publisher node outside a catkin workspace. Can it be created?
rama
  • 43
  • 2
  • 6
2
votes
0 answers

Importing a c++module on python

I'm trying to import a C++ module on a python script. I'm using pycharm community edition 2017.3.3 as IDE and catkin as build system. The IDE is able to recognize my importing statement. import hector_path_follower My problem is having access to…
absentia
  • 142
  • 2
  • 13
2
votes
2 answers

IDE open project based on catkin_tools

I am now reading a ROS package built on catkin_tools. It is complicated so I need to import this project into an IDE (like Clion, QT Creator, etc). Although the official doc of catkin-tools says you can't rely on CMake's IDE integration…
Handuo
  • 21
  • 1
  • 3
2
votes
3 answers

Where to install catkin_ws for DJI Onboard-SDK ROS

I’m trying to set up a ROS install using the instructions found here: http://developer.dji.com/onboard-sdk/documentation/sample-doc/sample-setup.html#ros-oes Specifically I am happy and things install and make successfully until I reach step 4: …
2
votes
1 answer

Is it possible to switch between nodes while opening with Launch file in ROS?

There are two different nodes one of them written in Python, and the other in C++. They are doing the same thing basically. Let's say they are finding banana with different methods like viola-jones or hog. So, their names are: node 1:…
cagatayodabasi
  • 762
  • 11
  • 34
2
votes
1 answer

In cmake, how can I always execute a process? (or capture stdout from add_custom_command)

I am using generated files in my cmake project. I have a script that generates source code from some input, and the same script can also validate the input, if given a different command line argument, like this: generate_code.py…
Drew
  • 12,578
  • 11
  • 58
  • 98
2
votes
2 answers

ROS C++ catkin not finding my custom messages

The compiler is telling that the messages (.../message.h) being not found. See my CMakeLists.txt below cmake_minimum_required(VERSION 2.8.3) project(my_package) add_compile_options(-std=c++11) find_package(catkin REQUIRED COMPONENTS cv_bridge …
Courier
  • 920
  • 2
  • 11
  • 36
2
votes
2 answers

Sublime Text 3: how to create a build system?

I m a ROS user. With that framework you usually define a working directory: $ mkdir -p ~/catkin_ws/src $ cd ~/catkin_ws/src // Here create your c++ packages and then let the system to compile your packages by typing the following: $ cd…
Dave
  • 349
  • 4
  • 22
2
votes
1 answer

Change default CMake version, Ubuntu 14.04

As far as I've understood, I need to use at least CMake 3.1 in order to use C++11. Ubuntu 14.04 comes with 2.8.x. I followed a guide suggesting that one should install CMake to /opt, so I have CMake installed to /opt/cmake-3.2.1-Linux-x86_64 and…
Alrekr
  • 300
  • 4
  • 14
2
votes
1 answer

Segmentation fault before main with pcl::ExtractIndices (pcl, ROS, catkin)

I am attempting to run the following in C++: #include #include "pcl/pcl_base.h" #include "pcl/PointIndices.h" #include "pcl/conversions.h" #include #include #include…
Collin B
  • 51
  • 6
2
votes
1 answer

How to port a qmake project to cmake

I would like to "port" this C++ project, which uses qmake (i.e., a Tool.pro file) for building, to cmake. Essentially, I'm asking how to go about writing the necessary CMakeLists.txt file(s) by looking at the Tool.pro file above. This is what I've…