Skip to main content

Questions tagged [include]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
15 views

re-use model in SDF file, more than name and pose

I'm trying to write a world by reusing models as much as I can. The world contains 2 similar models "PublicBathroomA" and "PublicBathroomB". They differ in few things, pose and ...
SebL's user avatar
  • 51
0 votes
2 answers
36 views

Cannot include header from another ROS2 package

I want to include the header file "cpp_pubsub/publisher_member_function.hpp" from my package "cpp_pubsub" into my other package "cpp_pubsub_2" but I get the following ...
Benno's user avatar
  • 3
0 votes
2 answers
12 views

ROS2 colcon ament: includes non-existent path /usr/local/lib/python3.10/dist-packages/numpy/core/include . How to set the folder to python3/?

I build an ament package A on a docker container on the cloud. Then, I build locally package B that has A (which I pulled via conan) as dependency. And I see this error ...
Alessandro Amici's user avatar
0 votes
0 answers
11 views

#include errors for navigation package

sorry if this is dumb I'm new to cpp and ros, but am currently using this: https://github.com/ros-planning/navigation but I keep getting the error across basically every file I open: #include errors ...
widogast's user avatar
0 votes
0 answers
15 views

Is it possible to use expression evalutions ${} to call Xacro namespace macros to create lots of robots efficiently? Want to avoid hard-coding

The below code is incorrect. Is there a way to do this properly to potentially make a macro that creates lots of robots. ...
Yato's user avatar
  • 58
0 votes
1 answer
142 views

How do you pass params into another Xacro file via xacro:include? How does the other Xacro file receive that input?

How do you use xacro:macro and arg to include 2 of the same robot in your URDF? I'm using args for each Xacro file to read the ...
Yato's user avatar
  • 58
0 votes
0 answers
116 views

Sdf Joint not connecting parent model to included model

for the past month I've been working in an ignition gazebo simulation using SDF file to describe my robot model. Since the robot has some repeated parts I created a different file and included it in ...
amsantos's user avatar
0 votes
1 answer
65 views

How to include a srv from another pkg in ROS2 - fatal error: No such file or directory

I have followed the basic srv example for ROS2 from the official website. However, i tried to create myself the service instead of using example_interfaces (intern from ROS2). I first tried to create ...
user avatar
0 votes
1 answer
91 views

another "fatal error: ros/ros.h: No such file or directory"

Good evening Sorry for asking another "ros/ros.h: No such file or directory" question. Unfortunately, none of the following did work/is applicable: 2xFindPackage, InitWorkspace or ...
user avatar
0 votes
1 answer
27 views

can ros communicate between different versions via WIFI?

Hi, Can two different versions of ros1 communicate between two different distributions or do all computers have to be the same? Example between melodic on Raspberry PI (arm) and Noetic on Ubuntu (...
user avatar
0 votes
1 answer
52 views

[ROS2] Call launch file from another launch file

Hello, Is it possible (and how) to call a launch file from another launch file? I believe that was possible on ROS with the "include" tag, but I do not know how to do it on ROS2 with the ....
user avatar
0 votes
1 answer
7 views

Can you structure the include folder in a ROS C++ Package with subfolders?

I currently have some c++ libraries that i would like to implement and build in ROS using catkin workspaces. My method so far has been to let each library be its own package, but I've recently run ...
user avatar
0 votes
1 answer
43 views

how to include an existing urdf file into anothe urdf file with xacro

Hi, I have written a short urdf file to describe my tool and a launch file to open it in rviz. So far everything displays correctly and there are no errors. Now, I want to include another urdf file ...
user avatar
0 votes
2 answers
4 views

Include methods from another node header (C++)

I have a node with some methods declared in /include/node_1.h and defined in /src/node_1.cpp. Now, I want to include that header ...
user avatar
0 votes
1 answer
10 views

Adding header files from specific folder to library using catkin_simple

I'm trying to create a catkin wrapper to build a library from external files. I'm usually using catkin_simple. However, the header files here are not contained in the include directory. I'm trying to ...
user avatar
0 votes
1 answer
24 views

Issue with include: In function 'main': Undefined reference to

Hello. I'm having an issue linking a header to my code. I'm trying to include libi2c from "https://github.com/amaork/libi2c" to use with ROS. (Stand alone this all works). I have a node ...
user avatar
0 votes
1 answer
9 views

How does on include the PCL library to an existing ros package code?

I am trying to convert my code from using a vector of particles to a proper point cloud implementation. I want to use the octree module of PCL for radius based searches. However, when compiling the ...
user avatar
0 votes
1 answer
15 views

tf2_eigen include does not find library Eigen/Geometry

Hi, I want to use tf2_eigen to convert geometry_msgs/Vector3 messages (and further ...
user avatar
0 votes
1 answer
142 views

Unable to include header files from another package

I am trying to create a library package which also includes header files to include from another package, but the other package is not able to find them. The CMakelist.txt from the library package ...
user avatar
0 votes
1 answer
21 views

Xacro include breaks including xacro file

I have a xacro file named "diff_wheeled_robot.urdf.xacro" to describe a robot and it works just fine. It is including other xacro files and their xacro macros. Now I want to include another ...
user avatar
0 votes
1 answer
15 views

Help with using parameters in included Xacro Macro

Hello all, I'm trying to do something that I think is very basic but running into all kinds of trouble. System is Ubuntu 16.04 with ROS Kinetic. I want to define my robot (a drone) with the ...
user avatar
0 votes
1 answer
139 views

CMake Error include dir 'include' does not exist relative

I am using ros kinetic on ubuntu 16.04 After setting up the environment and installing all dependencies using rosdep from the root I am running catkin_make and getting error: ...
user avatar
0 votes
1 answer
5 views

Compilation errors when trying to link custom class

Hello everyone, I've started messing with ROS not long ago so forgive me if my question is silly. I'm facing problems when trying to link custom class to node. The class is for measuring distance with ...
user avatar
0 votes
1 answer
5 views

Still cannot include library to package from another package

Hi all, I want to use several libraries created in one package, let say package A, into package B. Both packages' bareboned ...
user avatar
0 votes
1 answer
2 views

Catkinising package- Unable to include a header file from another package- Indigo

I have three packages in the same workspace called: art_msgs (contains messages in art_msgs/msg folder) art_common (contains some nodes in art_common/srcfolder which depend on messages from art_msgs; ...
user avatar
0 votes
2 answers
15 views

Error including ros headers

Hello there! I am having trouble with a ros project that thows curious errors when trying to catkin_make it. here is the error: ...
user avatar
0 votes
1 answer
28 views

error: 'Point' does not name a type

Hi, I'm trying to utilize the geometry_msgs 'Point' type and receiving this error: /home/viki/catkin_ws/src/ibvs/src/visual_servoing.cpp:42:1: error: ‘Point’ does not name a type Point CENTER = Point(...
user avatar
0 votes
1 answer
13 views

Roscpp header file for tf2 transform

Which header file to include for tf2::Transform? Unfortunately this is not a well documented way to use tf2 as far as I can find. It is in the file Transform.h, but ...
user avatar
0 votes
1 answer
7 views

catkin_make can't find #include files

...
user avatar
0 votes
1 answer
2 views

Where to find what to include in C++?

Hi everyone In every piece of code, be it on the wiki or forums, everyone seems to automatically know what .h files to include for whatever ROS functionality they are using, be it some special nodes, ...
user avatar
0 votes
1 answer
55 views

How to use a service defined in another package?

Hi all, I am facing a compilation problem when I try to include a service.h file in a node located in another package. Here is the architecture : ...
user avatar
0 votes
1 answer
1 view

Must Compile Message and Service Several Times To Work

Folks (sorry for the upper case in advance...they just to make sure people understand those are examples of my code), What is the proper way to create a CMakeList.txt file that includes messages and ...
user avatar
0 votes
1 answer
13 views

catkin install space include directories for legacy code

From documentation, the catkin implementation and previous answers I conclude that it is intentional, that in a catkin package you cannot export any subdirectories of ...
user avatar
0 votes
1 answer
1 view

How to include a .launch file on a remote machine from a .launch file?

I'm trying to write a launch file that automatically ssh's and launches turtlebot_bringup minimal.launch on my turtlebot from my computer. I'm using Indigo. I have something like this: ...
user avatar
0 votes
1 answer
9 views

Including files from another catkin workspace

I'm having difficulty setting the include paths that I need for a ros node I'm building. I need to include some header files from a different catkin workspace in order to use some services from ...
user avatar
0 votes
1 answer
1 view

Problem using gtk with ROS

Hello everyone. My problem is when I try to use catkin_make. I have my catkin_ws in ...
user avatar
0 votes
1 answer
65 views

How to create custom models and include that in .world file?

I need to include a small box (static) object in a .world file that has a picture in it. (I have .launch and .world file that works fine) I am new to ros and gazebo. I am little bit confused with all ...
user avatar
0 votes
1 answer
20 views

catkin_package() include dir 'include' does not exist

I am trying to install viso2_ros package from here, when I encounter the following error while I catkin_make ...
user avatar
0 votes
1 answer
15 views

Including pcl_ros for transformPointCloud

Hi, So I'm trying to use pcl_ros method: ...
user avatar
0 votes
2 answers
2 views

Modifying Catkin Include Order to use Source Package over Debian Package

I am attempting to use a custom set of ros_control headers (specifically for the controller_manager class) in a package that depends on nearly a dozen other packages, some of which I cannot modify. I ...
user avatar
0 votes
1 answer
7 views

Shared libraries with catkin

Folks, I have a folder called "lib" inside my ROS package. The "lib" folder has two .so libraries (one is named "librobotsdk.so") that my package needs (the libraries ...
user avatar
0 votes
1 answer
4 views

roslaunch "include" in a new terminal

Hi all, with "include" I can call a "launch" file from another one, but is there a way to run it in a new term window? We can make it with "launch-prefix="xterm -e"&...
Myzhar's user avatar
  • 198
0 votes
2 answers
12 views

Include Header file from another package - Indigo

Hi folks, I have a file called (every name here is FAKE) file.h from the package named "my_package." Now, main.cpp located inside package named "the_package" needs to include the ...
user avatar
0 votes
1 answer
1 view

How do I include subfolders, and how do I have .h files inside subfolders find other .h files in other subfolders?

It may be best to look at this example: https://github.com/PR2/linux_networking/tree/hydro-devel/wpa_supplicant_node I'm trying to get the code here to compile but it can't find "/home/marco/...
user avatar
0 votes
1 answer
1 view

include standard raspberry pi library to ros hydro

Hey all, I've got a problem concerning the standard raspberry libraries. I'm trying to receive sensor data via a sensor shield specialized for raspberry pi and for that purpose the already succesfully ...
user avatar
0 votes
1 answer
4 views

why are .h and .cpp separate in the directory structure?

Way back in the days of yore, I remember automake separated src and include so that it could install headers with a single -r. CMake on the other hand, allows you to directly install each file into ...
user avatar
0 votes
1 answer
13 views

How to automate the launching procedure of ROS nodes

Hi, I am interested in automating the commands that I have to type in separate new terminals to launch various nodes. step:1.sudo su step:2.cd /root/fuerte_workspace step:3.source /root/...
user avatar
0 votes
1 answer
9 views

How to export header and library build flags for non-catkin projects?

For some of our in-house ROS nodes, I want to link against some of our proprietary headers and libraries, none of which are built using catkin or cmake. What I would like to do is create a ROS package ...
automatom's user avatar
  • 5,572
0 votes
1 answer
4 views

How to import files to ROS package with catkin?

This is my first ROS package and I think this is a pretty easy question but I'm not sure how to most appropriately do this: I am trying to build a ROS package with GTSAM: borg.cc.gatech.edu/download ...
user avatar
0 votes
1 answer
2 views

Use ardrone_autonomy library in qtcreator

Hi there, i have a problem with subscribing to ardrone/navdata, because the library ardrone_autonomy/Navdata.h can not be found. I tried to include it with this line: ...
user avatar