Skip to main content

Questions tagged [msg]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

how to construct a std::map of topic_name(std::string) as key and ros2 msg class(ptr) as value?

i need a std::map with topic_name as key and some-different-types of msgdata(or msgdata prt) as value in ros2, like ...
furynerd's user avatar
1 vote
2 answers
1k views

What causes build error: cannot import name 'OVERRIDE_OPT' from 'em'?

When building a pure ROS2 message package (event_camera_msg) on github (CI) using the ros-tooling/[email protected] I get the following cryptic error when building on any ROS2 distro (humble, iron, ...
Bernd Pfrommer's user avatar
0 votes
1 answer
34 views

lifecycle_msgs/msg/state.hpp is missing by build ROS2 UR_Robot_DRIVER

Good evening to all participants. when i'm compiling the last state of the UR driver for ROS2, so i get a fatal error ...
user avatar
0 votes
1 answer
7 views

how to creating fake Pose

Hello, I am trying to pubuilsh a fake pose in code. I checked the message rules and put the desired value and executed it, but the following error occurs in the subscriber. May i know what mistake i ...
user avatar
0 votes
1 answer
19 views

Importing ROS msgs from a directory other than /msg

I'm trying to create a flexible way of defining enumerations for different datatypes, such that adding a new enum doesn't invalidate the message hash, thereby ruining the bag. Such that a traditional ...
user avatar
0 votes
2 answers
205 views

ROS2 sending multiple inputs msg

hi, im trying to send four floats like 20.0,20.0,320.0,20.0 in a msg on a publisher node, but it realy doesnt like to send the numbers. ...
user avatar
0 votes
2 answers
10 views

Can you use constants in action files?

I am trying to define a constant in an action file, but for some reason its not working. Is this even possible? Here is what my action file looks like: ...
user avatar
0 votes
1 answer
16 views

How to access ChannelFloat32 in python?

Hello, I'm on melodic and try to subscribe to a ChannelFloat32 message, but I neither can import the type nor have an Idea how to access that. How can I do that? Originally posted by bionade24 on ROS ...
user avatar
0 votes
1 answer
10 views

Cannot import custom rosmsg (actionlib)

Hi, I have very strange problem related to my custom action msg. I compiled my msg, but I can't import it. When I try to run my py action server I am getting next error: raceback (most recent call ...
user avatar
0 votes
1 answer
8 views

Cannot import my self-defined msg in ROS using Python

Hi everyone, I'm quite new in programming using Python, but I need to use it in order to call some libraries in ROS I've downloaded from Github. The thing is that I need to call a msg I've created (it ...
user avatar
0 votes
1 answer
12 views

Trouble Building Messages: Invalid Declaration 'float32'

I'm trying to define a simple message for a larger suite of messages that just defines the limits of some attribute by containing a maximum and a minimum value. So I defined the following message as ...
user avatar
0 votes
1 answer
18 views

ros msg definitions, difference between std_msgs/TYPE and type

Hello, What is the difference in between using std_msgs/Float32 someVariable and float32 someVariable in msg files? I noticed ...
user avatar
0 votes
1 answer
11 views

uint8[] field in message definition is empty when i echo the topic

Hi everybody i'm currently using an arduino board (MKR WAN 1300) as a ROS node, In the arduino sketch i'm using a custom message type named "RosInfo" and i want him to publish this type of ...
user avatar
0 votes
1 answer
62 views

python rosmsg/rospack in ROS2

I have some python code using rosmsg and rospkg, i.e. rospack = rospkg.RosPack() lines = rosmsg.get_msg_text(msg_name, False, rospack) how to do the same in ROS2 ...
user avatar
1 vote
1 answer
127 views

Using json in msg

Is it good practice to use the ros2 json message, ie, in a standard message like std_msgs / string, write a string with a json structure? Originally posted by D0l0RES on ROS Answers with karma: 23 on ...
user avatar
0 votes
1 answer
1 view

replay of the finished message through foreach

I have a msg message containing 45 variables, and I’m actually able to fill in the message variables through a loop or should I write each variable manually? I use ros2, I write on C++, assembly ...
user avatar
0 votes
1 answer
226 views

ros2: embedding a msg as a field in a custom msg

Hi, In ROS, I could import other messages using headers. Header header int32 cout int32 nch int32 lenght This way I could include std_msg's stamp and frame_id. ...
user avatar
0 votes
1 answer
2 views

Creating msg messages

Can you please instructions with creating your package from scratch, or rather the description of what you need to specify in CMakeList.txt and package.xml. I understood how to create my overlay and ...
user avatar
0 votes
1 answer
2 views

catkin_make issue updating .srv and .cpp file simultaneously

Think of a situation where rosnode (written in c++) is using messages generated by a .srv file. You want to add a field to the .srv file and use it in the rosnode. If you make these changes ...
user avatar
0 votes
1 answer
13 views

How to force std::vector type for fixed-length arrays in msg?

Hi, According to this page http://wiki.ros.org/msg fixed-length arrays in msg files can be interpreted as boost::array or ...
user avatar
0 votes
1 answer
92 views

adding std_msgs Int16 and int?

i made a simple publisher which publish a Int16. the problem is in the subscriber i try to receive the int16 and add a constant number to it for example 2 the publisher code: ...
user avatar
0 votes
2 answers
3 views

Setting project name "debug_msgs" occurs error while "mydebug_msgs" is ok

when I build my msg project whose name is "debug_msgs" with ros2 bouncy, I get error as follow: command: colcon build output: ...
user avatar
0 votes
1 answer
6 views

How can i generate ROS2 .idl files?

I am not clear with my application. Maybe I am totally wrong. Is it possible to create .idl files from the ROS2 talker-listener demo ? They are using the standard message type as string. When I run ...
user avatar
0 votes
1 answer
4 views

ROS msg including image and related variables related to that image

I need to create a publisher which can publish an image along with a few strings, integers and arrays containing different information about the image (like number of objects, bounding boxes, name of ...
user avatar
0 votes
1 answer
15 views

msg error catkin_make

i try to make custom messages in my workspace. i follow the tutorial, but when i'm catkin_make workspace, i get erorr like this and i try to catkin_make install and get same error. what should i do?? ...
user avatar
0 votes
1 answer
1 view

New msg for arduino

HI everybody, I'm studying ROS, and I have a problem. I want to add my message to Arduino sketch, I successfully compiled the Arduino sketch in catkin workspace, but when I tried to add my meessage ...
user avatar
0 votes
1 answer
3 views

Is it possible to receive a msg on a certain topic by calling a service?

Hi all, I'm working with gazebo, where I created an indoor environment and a mobile robot. The robot is equipped with an RGB-D camera and a logical_camera. Now, I would like to write a node that, ...
user avatar
0 votes
1 answer
53 views

[ROS2] generating DDS .idl files from .msg ROS Message Format

Hi all, I'm trying to create .idl descriptions from the ros message description format. There is the rosidl_generate_dds_interfaces package and cmake macro. How ...
user avatar
0 votes
1 answer
29 views

error: no match for 'operator='

Hey, I get this error when building the package: ...
user avatar
0 votes
1 answer
3 views

.msg Module not being found

I am running ROS Indigo on Ubuntu 14.04. Here is my package and cmake file: CMAKELIST: ...
user avatar
0 votes
1 answer
2 views

Import error: no module named Num.msg

Hi, I want to use my own msg, and try this: from Num.msg import * and get the import error. Num.msg is in /msg/ and is found by "rosmsg show". When I don't import, codeline "a = Num()&...
user avatar
0 votes
1 answer
13 views

unable to load msg: invalid name

Hi, Using Ubuntu 16.04, ROS Kinetic and Python, I've created a msg in ~/catkin_ws/src/roboti_pi/msg: Num.msg with content: int32[] data My code to use this message: a = Num() a.data = [1, 2, 3] This ...
user avatar
0 votes
1 answer
2 views

Embed request fields from another .srv files into my .srv

Service_Description_Specification says: You cannot embed another .srv inside of a .srv. The syntax of .srv files aligns with that of ...
IsaacS's user avatar
  • 4,502
0 votes
1 answer
20 views

publish numpy matrix to topic

Hello together, I would like to publish a 10x10x10 numpy-Matrix in one publishing step. Therefore I would like to know how I can declare the numpy.ndarray as a ...
user avatar
0 votes
1 answer
13 views

Return array in service in c++

Hi people! I'm starting with ROS and I have a problem implementing a client and server. I used the files created in the tutorials of ROS but I would like to return an array of strings and I don't know ...
user avatar
0 votes
1 answer
3 views

Name conflict between msg and srv

I want publish a message reporting an actuator state change, but I also want to provide a service to allow setting that state. When I tried to create a msg called MyState and srv called MyState, ...
user avatar
0 votes
1 answer
25 views

Cannot load message class for [robot_position/mymsg]. Are your messages built?

I correctly followed the steps as mentioned here: link text Home>assign2>src>robot_position Where robot_position is my package name. I created a directory named msg inside it and inside msg ...
user avatar
0 votes
1 answer
6 views

Fail to make hector_gazebo_thermal_camera

Recently I am building hector_quadrotor(http://wiki.ros.org/hector_quadrotor) package. It needs another package named hector_gazebo_thermal_camera(inside http://wiki.ros.org/hector_gazebo). Using ...
user avatar
0 votes
1 answer
1 view

Echoing custom messages over SSH error

I have a node running on an embedded platform publishing a custom message (just a float32[]). I have a ros master running on a different machine, and both ...
user avatar
0 votes
1 answer
7 views

RVIZ Access pose variable of custom msg

Hello, I have created a custom msg that has a int and a posestamped. Considering that my msg is called customMsg I can do a rostopic echo for customMsg or per example customMsg/Pose and see only the ...
user avatar
0 votes
1 answer
12 views

Why does rospy instantiate msg arrays as lists but deserialize them as tuples?

According to the ROS wiki page for msg, In rospy, arrays are deserialized as tuples for performance reasons, but you can set fields to tuples and lists interchangeably. I can't complain about the ...
user avatar
0 votes
1 answer
3 views

Help a isloated and helpless learner in tf

Hi,everybody I'm a chinese student,because of the greatwall firewall,I can not get enough and explicit documentations except for wiki.ros.I'm so sorry to interrupt you for asking these silly questions,...
user avatar
0 votes
1 answer
4 views

Best way to add/use directories inside of /msg?

I've been struggling with this for a few days now, and I can't seem to find any answers involving this. I'm working with a relatively large project with hundreds of messages, and there's no way it's ...
user avatar
0 votes
1 answer
19 views

Simple problem with TwistStamped msg

hi Ros users: I am trying to do an array of velocities. This is my code: ...
user avatar
0 votes
1 answer
5 views

Turn off msg-generation for lisp

Hey! I'm currently trying to speed up my build process and just notices the generation of lisp files for my msg/action-files. Is there a simple way to turn that off? Or are they somehow used ...
user avatar
0 votes
3 answers
3 views

writing a custom message and using it in a different package

first of all, I have gone through these links, so it is not a repeat question: http://wiki.ros.org/ROS/Tutorials/DefiningCustomMessages http://wiki.ros.org/ROS/Tutorials/CreatingMsgAndSrv#...
user avatar
0 votes
1 answer
8 views

Using msgs from the same package

Hi, I'm trying to use msgs from the current package. So usually it's like this, when I'm using a different package: ...
user avatar
0 votes
1 answer
14 views

Num.msg is not used

I have just completed ros Beginner Level Tutorials. At Level 3 a package is created by the name "beginner_tutorials". At level 10 we add msg file called "Num.msg" to msg folder of ...
user avatar
0 votes
1 answer
29 views

Publish multiarray Python msg

When I press a button of my joystick, I save one point [x y z r p y] if I press again I save another point. Here, I save two points: [[0.29845908995953135, 0.210860533103541, 1.2190388918130415, -2....
user avatar
0 votes
1 answer
22 views

Creating a ROS msg and srv - Tutorial

Hi! I have the same problem as mentioned here: Error using rosmsg in "Creating msg and srv" Tutorial In section 2.2 of this tutorial when typing the command $ rosmsg show beginner_tutorials/...
user avatar