Questions tagged [rosmsg]

The tag has no usage guidance.

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

ROS2 equivalent of ros::message_traits

I have a legacy code in ROS Kinetic Kame which needs to be reimplemented in RO2 Humble Hawksbill. The legacy code has few statements with ros::message_traits. While trying to find it myself, I ...
RobotBramhana's user avatar
0 votes
0 answers
39 views

ROS custom msg to be used in an ESP32 microcontroller using Platformio

I'm trying to publish an array of quaternions to a single topic on ROS noetic. For that I created a new message type following the tutorial: ...
Heisenberg's user avatar
0 votes
1 answer
5 views

How to access complex rosmsg elements in cpp?

I trying to access osrf_gear::Order message elements within orderCallback scope. The structure of the message is as following: <...
user avatar
0 votes
1 answer
38 views

Unable to load msg [sensor_msgs/]

when I use the instruction rosmsg show sensor_msgs/ I get the following weird error: ...
user avatar
0 votes
1 answer
4 views

How do detect the point cloud is in front of you?

I can get the point cloud from velodyne. but I need to get the point cloud that near velodyne or that infront of. so I watched the msg site but i don't still know. Which message field indicates which ...
user avatar
0 votes
1 answer
2 views

type hinting rosmsgs in callbacks?

Trying to prepare proper documentation for a code review and I wanted to use type hinting, however Im getting errors (expectedly) when type hinting for rosmsgs during function callbacks... Wanted to ...
user avatar
1 vote
2 answers
85 views

ROS2 equivalents to ROS1 roscd, rosmsg rossrv

Are there equivalent commands for roscd, rosmsg and rossrv (especially for ...
user avatar
0 votes
1 answer
90 views

Ho to publish a transform between base_link and map

Hi, I am trying to move a robot through the map in the RVIZ. I have a robot URDF file and also a map. Is it possible to publish a transform between robot base link and map? By assuming that it is ...
user avatar
0 votes
1 answer
6 views

Custom ROS message with unit8[] in python!

I have a PacketMsg.msg as follows in my package: uint8[] buf I would like to decode /topic ...
user avatar
0 votes
1 answer
8 views

rosmsg show Num error

I'm following the ROS Tutorial ''Creating a ROS msg and srv'' and meet a problem. When I type $ rosmsg show Num It shows ...
user avatar
0 votes
1 answer
4 views

Creating a ROS msg

I was following the steps of the tutorial "Creating a ROS msg and srv" http://wiki.ros.org/ROS/Tutorials/CreatingMsgAndSrv and the step 3 I got this message: ...
user avatar
0 votes
1 answer
1 view

Find dependents of ROS Message and Service statically

There used to be a command rosmsg users back in ROS Electric (!) or earlier that seems to return the list of ROS Messages that ...
IsaacS's user avatar
  • 4,492
0 votes
1 answer
2 views

CMake Error in rosmsg tutorial

I am in the tutorial at CreateMsgAndSrv and got stuck at chapter 3. Running the command $ rosmsg show beginner_tutorials/Num got me the following ...
user avatar
0 votes
1 answer
1 view

rosmsg tutoral error

I was working through the tutorials on rosmsg and encountered this error. I went back and followed the instructions on the previous tutorials, but cannot seem to find the problem. At the end it says ...
user avatar
0 votes
1 answer
4 views

Read message structure at runtime from advertised topic

I have been looking in the roscore source code with no success. I want to "read" the structure of a given message (by topic name for example). By structure I mean a tree showing the fields a ...
user avatar
0 votes
1 answer
15 views

create rosmsg content from string

With python: I want to in a generic way dynamically create ros messages where the values comes from a string representation. For example lets say I have a message definition: ...
user avatar
0 votes
1 answer
3 views

Backwards Compatibility for Variable-length Messages

Say I have the following message definition, with messages passed from a microcontroller to a single-board computer over rosserial: ...
user avatar
0 votes
1 answer
2 views

running rosmsg show from code

Hi, is there a way (possibly in Python) to call the command line command rosmsg show from code, passing as an argument the name of the message/service and getting ...
user avatar
0 votes
1 answer
1 view

md5sum change when modifying comments in msg/srv/action?

When only updating comments in .msg/.srv/.action file, does checksum get changed? Locally I tested as follows and md5 doesn't seem to change. Here's from DEB: ...
IsaacS's user avatar
  • 4,492
0 votes
1 answer
1 view

Tutorial question 'Using rosmsg' error

Hello, I have been going through the tutorials for the first time, but got stuck on the 'Using rosmsg' section. The command is : rosmsg show beginner_tutorials/Num...
user avatar
0 votes
1 answer
15 views

How does rosmsg md5 calculate the md5sum?

Hello! I need to communicate through ros topics between two different ros versions. One of the msgs depends on trajectory_msgs which has changed between versions so it gives a md5sum error. To ...
user avatar
0 votes
1 answer
81 views

Assign C++ Array to ROS Msg Array

How do I assign a C++ array to a ROS message array? In particular, how do I do this for a float64[9] array? Originally posted by atp on ROS Answers with karma: 529 on 2016-04-22 Post score: 1
user avatar
0 votes
1 answer
4 views

Show all message types which contain a given msg

Is there a way to use rosmsg to query for all messages that contain another msg type? For instance, I'd like to see all message types which contain a ...
Lucas Walter's user avatar
  • 3,327
0 votes
1 answer
6 views

How to create a new ros topic for specific messages

Topics in ROS are strongly typed. I need to publish and subscribe messages I have created for hector_uav_msgs folder but existing topics don't support them. How to start creating from scratch a new ...
user avatar
0 votes
1 answer
1 view

Do ROS srv open and close nodes?

Hello all, Not sure if it's important information for this question but I am using ROS indigo. Let me give you the back story. I have two nodes. Lets call them Node1 and Node2. Node1 publishes ...
user avatar
0 votes
1 answer
23 views

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

I have a node that subscribes to /joy topic, converts to /cmd_vel topic, and publishes to arduino via rosserial. I am receiving joy messages just fine, but when I ...
user avatar
0 votes
1 answer
1 view

Is the "byte" type in messages signed or unsigned?

It appears that moveit_msgs/CollisionObject uses the type byte which isn't discussed in the documentation for message types found at http://wiki.ros.org/msg . Is ...
user avatar
0 votes
1 answer
1 view

Error using rosmsg in "Creating msg and srv" Tutorial

Hi, I'm trying to follow the beginner tutorials, using ROS Indigo on ubuntu 14.04 LTS in VirtualBox. I'm currently on the tutorial for Creating a ROS msg and srv, http://wiki.ros.org/ROS/Tutorials/...
user avatar
0 votes
1 answer
33 views

ROS msg cannot locate message

Hi, I am learning the tutorial for ROS. I ran into this error when I try the code below. I used nano editor to edit the package.xml and CMakeLists.txt as directed in the tutorial. ...
user avatar
0 votes
1 answer
5 views

Mixing ROS message versions

If I have a robot (Baxter) with an older version of a ROS message (say, control_msgs from Groovy), can I build the latest version (Indigo) in my local user's workspace on the robot and use that ...
user avatar
0 votes
1 answer
1 view

problem with rosmsg - tutorial

Greetings, I am using the Indigo installation, with Ubuntu 14.04 in VirtualBox. I am following the ROS tutorials and I am currently having problems with ros messages I follow everything as described ...
user avatar
0 votes
3 answers
4 views

catkin use msg error: no matching function for call to ros::NodeHandle::subscribe

Hi, I want to use a msg defined in a rosbuild package in catkin. I include the .h file of this msg from the rosbuild package directly, and I can create the object successfully. i.e. ...
user avatar
0 votes
1 answer
2 views

ImportError: No module named my_package.msg

Hi I have created a package, that contains custom messages. They seem to be compiled correctly. Because I can call rosmsg package my_package and get ...
Christian's user avatar
  • 454
0 votes
1 answer
1 view

How to achieve a value of a multi-type message mesage?

Dear friends, I am trying to Subscribe from a topic, this topic has been published by CMVISION (/blobs) and has this type : Header header uint32 image_width uint32 image_height uint32 blob_count Blob[]...
user avatar
0 votes
1 answer
3 views

rosmsg show beginner_tutorials/Num (error???)

Hi guys I been fallowing beginner tutorial, I'm a newbie ok. So when i wrote in my terminal : $ rosmsg show beginner_tutorials/Num I got this error : ...
user avatar
0 votes
1 answer
6 views

Unable to locate custom action using rosmsg with catkin

Using Hydro-Catkin, when we add a custom.action to my_package, although it is correctly generated and we can use it, it is not listed when using the rosmsg list command. And if we specify the package, ...
user avatar
0 votes
1 answer
17 views

invalid message type

I try to use my own messages. I created msg file named RopEvent: int32 value string name string comment I can't publish message using rostopic pub. I try to ...
user avatar
0 votes
1 answer
1 view

c++ api to get message md5sum from string msg type (e.g. std_msgs/Int32)

Is there a c++ equivalent to retrieve the md5sum of a message type from the string msg type? In python you can do: ...
user avatar
0 votes
1 answer
4 views

rosmsg show beginner_tutorials/Num can‘t work

In the tutorial Creating a ROS msg and srv ,in the 2.2 chapter, when I input the rosmsg show beginner_tutorials/Num I can't see: ...
user avatar
0 votes
1 answer
4 views

How can I subscribe joint_controller/state from dynamixel

Hi, I write the following code to subscribe . How can I get the current pos data. ...
user avatar
0 votes
1 answer
2 views

rosmsg can't find message in my catkin workspace

Hi all— Just getting started with a catkin workspace and package, based on the following tutorials: http://www.ros.org/wiki/ROS/Tutorials/CreatingPackage http://www.ros.org/wiki/ROS/Tutorials/...
user avatar
0 votes
1 answer
8 views

rosmsg show in C++

Hello, I'd like a way I can recursively iterate all topics/types in C++. Essentially a rosmsg show through all types, down to the basic types. I've seen it done in Python using the function ...
user avatar
0 votes
1 answer
2 views

Is it possible to do *ros_msg?

Hi Community, I am working on a project that involves me defining various ROS msgs most of which are nested with other msgs that I have defined. Anyhow my question is regarding passing these ROS msgs ...
user avatar
0 votes
1 answer
1 view

Creating own service (not copying from some other package)

Hi! So I am new to ROS and I went through most of the beginner tutorials. I am at the point where I am learning how to create my own services. In the ROS tutorial on the link below, they tell you how ...
user avatar
0 votes
1 answer
2 views

rosmsg md5 Cannot locate message

On a fresh install of Fuerte on Oneiric (desktop-full installed from binary packages) the command rosmsg md5 does not appear to work: ...
user avatar
0 votes
1 answer
1 view

Problem with fuerte version of ROS

Hello guys, i'm just starting to learn ROS, but i'm having some problems following the tutorials: 1- The Turtlesim windows was supposed to show a turtle, but mine just shows the blue color. What did i ...
user avatar
0 votes
1 answer
18 views

Strange sensor_msgs/PointCloud2 MD5 signatures

I am working on some packages using both Electric and Fuerte (alpha). When I try to display the PointCloud2 output using rviz I ...
user avatar
0 votes
2 answers
58 views

Default values inside a message or srv definition

elements in a srv or msg definition are assigned zero values by the default constructor. What about when I wish to assign a non-zero or other special value as the default initialization value to a msg ...
user avatar
0 votes
2 answers
2 views

Writing messages to (individual) files

I'm writing a small caching node, that takes in messages (which include an index) and provides a service that (given the index) returns the appropriate message. I'm caching because storing all of ...
user avatar
0 votes
1 answer
1 view

How to document actionlib interface / Best practice for messages from .action files

I want to document the action interface in nao_driver which uses custom actions defined in nao_msgs. However, the messages themselves are generated from the .action files and this does not seem to ...
user avatar