Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [header]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
58 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
  • 13
0 votes
1 answer
130 views

[ROS2 Humble] Segmentation Fault for assigning Header/Frame ID to shared pointer

Hi Community, i am currently struggling with some segmentation fault which i don't understand while assigning the Frame ID to the header of a Odometry Message ...
user avatar
0 votes
1 answer
25 views

I can't find <dynamic_reconfigure/server.h> in the dynamic_reconfigure package

Hi all, I'm learning ROS using the tutorial section. Right now I'm doing this one: http://wiki.ros.org/dynamic_reconfigure/Tutorials/SettingUpDynamicReconfigureForANode%28cpp%29. I understand that ...
user avatar
0 votes
1 answer
4 views

main doesn't find the functions in the header file

Hi! I would like to create a header file, but when I do catkin_make, it doesn't find the functions in the header file. I think that the problem is in my CMaleLists.txt. Do I have to add something ...
user avatar
1 vote
2 answers
262 views

[ROS2-foxy] where to place source and header files and how to link them?

I have a ROS2 Project and I want to develop a good structured filesystem. I wanted to do some "good-practice"(from my point of knowledge) and import a class definition from seperate header ...
user avatar
0 votes
1 answer
443 views

ros2 foxy including header file from other package

I have two packages, temp_lib and temp_pkg. In temp_lib I have a file ...
user avatar
0 votes
1 answer
14 views

How to create a rosbag file with messages with an header

Hi, As I wrote on the title I'm trying to create a rosbag file from another one changing message types and using only some topics from the original one. The problem is, when I play the new rosbag the ...
user avatar
0 votes
1 answer
16 views

Action Header Returns "no such file or directory" When I Include It In cpp

I'm trying to get a c++ action client example running. When I include the actions header, the console returns "no such file or directory". I'm guessing I did something wrong with the ...
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
26 views

catkin_make do not create header files for srv files!

https://www.youtube.com/watch?v=dxVQnWhDgfg I tried this tutorial. This tutorial is about creating srv files. I did everything like tutorial showed me. But in 4:14 tutorial says "you can verify ...
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
110 views

Header stamp: When is/should this be from?

Many messages in ROS include the header, which includes the timestamp. What is best/expected practice for this? Should the stamp be the time at which the message is sent or the time of the event it is ...
user avatar
0 votes
1 answer
31 views

How to subscribe to multiple topic that has no header or how to add header into topics?

ROS Kinetic Ubuntu 16.04 Python 3.5.2 I am trying to use following script to subscribe to 2 topics and combining their data into a json file. ...
user avatar
0 votes
1 answer
3 views

What time should i use for ros messages?

This is a general question about ROS messages, but for the sake of the question i will use point clouds. Lets say my lidar obtains a point cloud at time t=0 sec. Now i do some processing on the point ...
user avatar
0 votes
1 answer
7 views

Where is this header file?

Hi I was looking at some code and noticed a header file that doesn't exist in the repo. This line includes a header "orb_slam2_ros/SaveMap.h", but it's ...
user avatar
0 votes
1 answer
8 views

How to add message field in a rosbag

I got a rosbag with a number of topics being played. I am interested in adding a Header (more specifically, a frame_id) to the message received so some 3d points in it are automatically displayed in ...
user avatar
0 votes
1 answer
165 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
25 views

Maximum Limit of String in ROS2

I am currently interfacing ROS2 with native RTI DDS Connext through RTI Connector for python. In my ROS2 node, I have a custom message type which uses header ...
user avatar
0 votes
1 answer
1 view

Create Data Conversion Package C++!

I have a problem with this tutorial about creating a header file. I do not understand what I should do and how should I do that. Can anyone give a clue? Or some ...
user avatar
0 votes
1 answer
17 views

IK - Invalid pose every single time for Baxter

...
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
1 answer
32 views

Service Header Files Missing Error

I'm a ROS beginner working on a custom controller for a UUV using Gazebo to simulate the environment and ROS to control everything. I'm using the uuv_simulator package, which does a lot of the heavy ...
user avatar
0 votes
1 answer
40 views

Why doesn't std_msgs::Float32MultiArray have a Header field?

Some messages (e.g., sensor_msgs::PointCloud2) have Header fields, while many others don't. In particular, why don't float32 multiarrays (or any other std_msg/ messages) have header fields? Why was ...
user avatar
0 votes
1 answer
10 views

Issues with header seq value (first value in rospy is 1, first value in roscpp is 0, access from roscpp)

I was planning to use Header seq value to verify that communication in my system of ROS-nodes (using ROS Indigo) is synchronized, however, I discovered a couple issues with that value. If that's a bug,...
user avatar
0 votes
1 answer
1 view

How to link headerfile and sourcefile by C++

Hello, I would like to divide programs into source files and header files in src folder. What do I need to link the some code ? Do I need to edit CMakeLists.txt? For example :ekf_localization https://...
user avatar
0 votes
1 answer
17 views

Extract header timestamp of Image message

Is the extraction of a timestamp from the header of a sensor_msgs::Image that easy: ...
user avatar
0 votes
1 answer
11 views

IR Range sensor Rviz Issue

I am having difficulty displaying the range visualization plugin inside of rviz. I have followed this tutorial: http://wiki.ros.org/rosserial_arduino/Tutorials/IR%20Ranger Furthermore, I have sensor ...
user avatar
0 votes
2 answers
15 views

Which frame_id do I usually specify for the NavSatFix header?

The coordinate system in NavSatFix is known by the fact that we are using WSG84 coordinates. But how do I specify the frame_id in the header? Is there some standard name for this frame, or will it be ...
user avatar
0 votes
1 answer
3 views

Adding header files to a node

Hello I'm trying to add C++ header files to a ROS node but when I do catkin_make it gives the following error: ...
user avatar
0 votes
1 answer
31 views

PoseArray receiving data, not displaying in RViz

I am constructing a PoseArray message with a number of orientations (not from a sensor) and sending it to display on RViz. using rostopic echo /poseArrayTopic, I ...
user avatar
0 votes
1 answer
13 views

header files not found even though they should be installed

I created a package A which only contains a header file to use in some other packages. But when trying to use the header in project B I always get the error "File not found". I found some ...
user avatar
0 votes
1 answer
1 view

Problem with Header File Not Being Sensed in Compilation

Hello, I am having issues compiling a simple package that I built. In the end, after compilation I am getting an error: ...
user avatar
0 votes
1 answer
2 views

ambiguous use of header file

Hi, I want to use a package::header as usual like this: void callbackBB(package_msgs::header msgs_x) { } but the compiler indicates the headerfile is ambiguous and ...
user avatar
0 votes
1 answer
2 views

CvBridge.h missing in Hydro armhf?

Hi, I'm trying to rosmake a self-written node in Hydro on armhf, but it fails on a missing CvBridge.h. "roscd cv_bridge" takes me to /opt/ros/hydro/share/cv_bridge$ and "ls" shows ...
user avatar
0 votes
1 answer
16 views

How to put headers into devel/include folder with catkin_make?

Have a lib in my package and want to share its header. According to "how-to" I use this command: ...
user avatar
0 votes
1 answer
43 views

How to correctly create an odometry message

Hi everyone. I creating a driver for my motors and I'm wondering how to create a "good" odometry data to send on the /odom topic. For instance, I know that documentation but I'm wondering if ...
user avatar
0 votes
1 answer
34 views

rosbag API C++: Message Header Stamp sec and nsec are always zero?

The "sec" and "nsec" values in the message header are always zero when recording using "rosbag::write". I provide a valid Time for the second parameter, but that only ...
user avatar
0 votes
1 answer
25 views

How to include headers from other packages

I'm using ROS Groovy with catkin. I created a package1 with a file1.cpp in the src directory and a header file1.h in its include/package directory. I need to #include this header in another file2.cpp ...
user avatar
0 votes
1 answer
20 views

What is the cmake catkin variable for the workspace root dir?

Catkin puts the headers from my custom messages from package1 in ~/ros_ws/devel/include/<package1>/ I want to use them when compiling package2. I am assuming ...
user avatar
0 votes
3 answers
12 views

Getting "Aria.h: file not found" when installing rosaria

Ubuntu 12.04.3, ros groovy. I am following a ROSARIA tutorial (can't post links) I know that it is an hydro tutorial, but I have the same issue with groovy version. Everything works well until ...
user avatar
0 votes
1 answer
24 views

Is the data in header message automatically filled?

I am deciding between a Pose message and a Pose Stamped message: will I need to explicitly fill the header data for the stamped message or does ROS handle that automagically? Originally posted by ...
user avatar
0 votes
1 answer
82 views

What is the proper way to create a Header with python?

I seem unable to find what the proper procedure is to fill a std_msgs/Header field in a message using python. I have found this for C++: my_message message; // using a std_msgs/Header called header ...
user avatar
0 votes
1 answer
3 views

Including uic auto generated header files in .cpp file

This may seem like a very stupid question, but I have a QT project that is built using rosbuild and CMake. The ui_form.h file is generated in the CMake build directory. I need to include this file in ...
user avatar
0 votes
1 answer
44 views

Why does ROS overwrite my sequence number?

I have noticed that the ROS Publishers seem to overwrite the sequence number set by me in the message header (std_msgs/Header). This only happens if the message is ...
user avatar
0 votes
1 answer
1 view

How I can use generated headers (like from messages) from one package in another?

I'm using groovy + catkin. How can I include the devel/include<package_name>, which contains e.g. the generated header-files from the messages in another package? ...
user avatar
0 votes
1 answer
1 view

Wrong header included by compiler

I've asked a question about execution error of a kinematics tutorial. After much discussion with dornhege, we guessed that the problem might be the hearder file being included was wrong. When I wrote ...
user avatar
0 votes
1 answer
6 views

Use updated headers when building with catkin

Hi, I started using the new catkin-based buildsystem for a recent project (currently with fuerte). It is working quite well and I see the advantages compared to rosbuild, but still there remain a ...
user avatar
0 votes
2 answers
29 views

ROS C++ Custom header not found

Hi, I created a ROS package with one main cpp file and another my_class.cpp file + my_class.h with some simple cpp code. As long as I have all files in the src folder of the package, it works fine. As ...
user avatar
0 votes
2 answers
8 views

ros Header: increasing "seq" in service calls?

Hi, I have a srv that contains a msg, which contains a ROS Header. I have two static variables inside main: one with a message and one with a service (containing request/response and wrapped inside ...
user avatar
0 votes
1 answer
2 views

Correct way of modifying ROS classes? (do I have to edit installed headers directly?)

Goal: Add a new member function in callback_queue.cpp from roscpp (ros_comm stack) Problem: make error "no member function declared in class ‘ros::CallbackQueue’" Details: To get the roscpp ...
user avatar