Skip to main content

Questions tagged [array]

Filter by
Sorted by
Tagged with
1 vote
0 answers
26 views

I'm using the rosbridge_server to communicate between a .net application and ros2 Jazzy. We're basically passing a huge array to ros (on the order of 500MB) and returning a similarly huge array. What ...
Joshua Beck's user avatar
0 votes
1 answer
71 views

I'm trying to populate a service response array in a Python coded service node and I'm getting an assertion violations from one of the IDL generated files. The service Service.srv definition is the ...
user3348915's user avatar
0 votes
0 answers
304 views

I am working on a project where I need to plot data from ROS2 array topics using rqt_plot. The data I'm dealing with involves multiple array topics, which are published per cycle from another node. ...
Yernar's user avatar
  • 1
0 votes
1 answer
1k views

I'm trying to use the rqt message publisher to publish a message of type std_msgs/msg/Float64MultiArray. I can't figure out how I'm supposed to give the ...
user avatar
0 votes
1 answer
37 views

I need the size of a custom array msg type. (The type is geometry_msgs/PoseStamped[] PoseStampedArray.) I need to iterate on the msg if it is not empty and I would very much like to get the last ...
user avatar
0 votes
1 answer
28 views

Hi guys. I need help. I want to make nodes that 'subscribe topic - save in array' and 'read array - publish topic'. (in my case it is geometry_msgs::Pointstamped) But there are no references and ...
user avatar
0 votes
1 answer
123 views

I'm trying to find the length of an array of geometry_msg:Point passed to a service handle, so I can iterate over each Point, apply a transform and then push onto a response. when I use sizeof(req....
user avatar
0 votes
1 answer
88 views

I created a custom message and it has string array(can be called a list) As I need to iterate through the string array, there is no built in dir that helps with it. Whenever I try to run a for loop on ...
user avatar
0 votes
1 answer
1k views

Hi, I am frustrated trying to understand the concept of Float32MultiArray. I have been reading the documentations from Float32MultiArray API , MultiArrayLayout and MultiArrayDimesion but I still don't ...
user avatar
0 votes
1 answer
40 views

Hi, I'm having this programming problem in ROS. I'm looping through the tracks array in radar_msgs/RadarTrackArray message and accessing its values. I'm using for-loop: ...
user avatar
0 votes
1 answer
63 views

When I try to resize a embedded array only 128 values are printed. After the 128 values, a '...'] is shown. This is when using ros2 topic echo. Is this to be ...
user avatar
0 votes
1 answer
75 views

Hi Buddy, I'm newbie in ROS and i trying to send data from arduino to Ros Topic. I have send string and integer type. But in Array type i have a small problem. This is my source code: ...
user avatar
0 votes
1 answer
17 views

Hi, I have been witnessing some bizarre behaviour with my very simple node. I have a custom message that contains uint8[] type (it's 8 elements long). I have a ...
user avatar
0 votes
1 answer
151 views

Hey everyone, I'm trying to do exactly what the title says , subcribe to a Multi Array with Float32 values (7 elements), and print each value for testing purposes. For some reason, what worked with ...
user avatar
0 votes
1 answer
27 views

Hey there, I would like to subscribe a field of a message array. E.g. if my message looks like this: BallStates.msg: BallState[] ball_states BallState.msg: ...
user avatar
0 votes
1 answer
13 views

enter code here ...
user avatar
0 votes
1 answer
287 views

Hi all, I am trying to send an array of vector from one node to another node as a message. The message contains this array and other message fields as well. My cpp file has the following array vector: ...
user avatar
0 votes
1 answer
94 views

I am trying to fill in an IMU message, and it requires 3 arrays of Float64's. How can I fill such an array in C++, initializing the first element with value -1 and the other values 0. The ...
user avatar
0 votes
2 answers
257 views

I am currently working on a circle detection app. Using OpenCV, I get a std::vector<std::vector<float>> named ...
user avatar
0 votes
1 answer
133 views

operation=['addition','subtraction','multiplication','division'] I want to publish each element in the array from one node and subscribe those elements by other node. What should be the proper python ...
user avatar
0 votes
1 answer
31 views

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
118 views

Hello, I'm stuck at my program to publish a 2 dimensional array. The array kinda looks like this: int deptharray[4][5] = { {0, 0, 0, 0}, {0, average11, average21, average31, average41}, {0, average12, ...
user avatar
0 votes
1 answer
38 views

I want to use a service that has a 2D array response this is my .srv file uint32 a --- uint32[][] tree catkin_make error: ...
user avatar
0 votes
1 answer
274 views

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
297 views

Hi, I have an issue trying to display a field of an array in a message in ROS Indigo with the command rostopic echo. I'm trying to display the position of an object detected with the Ork package, ...
user avatar
0 votes
1 answer
65 views

Hi, How can I receive a vector (with unknown length and contains three floats) over Publisher and Subscriber in C++? Originally posted by hsoltani on ROS Answers with karma: 70 on 2015-08-02 Post ...
user avatar
0 votes
2 answers
20 views

Hi Ros users! I have just done a .cpp wich publish velocities in a opic (p3dx/cmd_vel) Here it is: ...
user avatar
0 votes
1 answer
160 views

Hey guys out there, with lovely help of ROSanswers I got into creating and defining custom messages. My aim is to create a custom message which contains of an array of vector3(). I basically got a ...
user avatar
0 votes
1 answer
41 views

I'm trying to call a service and get a response from my ROS package. The specific srv is gazebo_msgs/GetWorldProperties, which is as follows: ...
user avatar
0 votes
1 answer
41 views

I'm trying to create a service that returns an array of a custom msg. However, when I call this using roservice call /myservice [input params...] I get the following error: ERROR: service [/...
user avatar
0 votes
1 answer
57 views

hi everyone, i'm writing a node that could save 3 coordinate and then add a point to a pointcloud. i'm trying to use pushback for the array of points in the cloud, this is the code: ...
user avatar
0 votes
1 answer
13 views

I have been trying (unsuccessfully) to plot /diagnostics/status[0]/values[0]/value (a stringified floating point number). Is such a topic string supported by rostopic or rqt_plot ? If so, how do I ...
user avatar
0 votes
1 answer
35 views

Hey, I m trying to create a script that sends a service message to the server. Everything is good on the server side but I'm trying to build the client side using Python, just to get familiar with ...
user avatar
0 votes
1 answer
35 views

Dear all, I amtrying to publish a msgs with large data size on Arduino. I have tried both Float32MultiArray and Laserscan msgs. However, when i increase the data_length more than 7, it shows an error ...
user avatar
0 votes
1 answer
9 views

I'm trying to write a ros node that subscribes to the turtlebot kinect data streams and can retrieve a distance at a specific point in the image (for starters, it will just be the centre centre point) ...
user avatar
0 votes
1 answer
12 views

I need to process the data from a webcam (i used USB_CAM Package). Initially I created a listener that from the topic "/usb_cam/image_raw" extrapolates the array uint8 [] data ... but ... ...
user avatar
0 votes
1 answer
307 views

Hi! I need to publish a matrix as a ROS message and I was looking around for common types of messages to see how 2d arrays were used. I checked on the following links http://ros.org/wiki/std_msgs http:...
user avatar
0 votes
1 answer
12 views

I'm using ROS and OpenCV in C++ environment in order to acquire a video (gray-scale) from a ROS node, convert the data through cv_bridge (in order to elaborate it through OpenCV), extract some data ...
user avatar
0 votes
1 answer
174 views

I'm using ROS electric. I have an srv that contains 2 arrays of int32[] rosmake functions correctly and the service is listed. However when I try to call the service I cannot get it to accept the ...
user avatar
0 votes
1 answer
12 views

Hello, I'd like to visualize a point cloud by using rviz. The points' coordinates were previously stored in an array that contains the x-, y- and z-coordinates of each point within a struct data type. ...
user avatar
0 votes
1 answer
24 views

Is it possible to access the audio stream from Kinect's microphone array within ROS? I found a brief reference in the deprecated kinect stack but nothing else. A quick Google search indicates that ...
user avatar
0 votes
1 answer
9 views

hi at all, easy question (or at least i hope so): how can I write a publisher which publishes an float64array? the problem is, i'm quite new to c++ so i don't understand all of the lines in the ...
user avatar
0 votes
3 answers
469 views

Not too much info on these (or any of the variants) on the wiki: what is the proper way to initialize these? I've tried: ...
user avatar
0 votes
1 answer
60 views

Example message type : Request : //request feature's 308 variables! float64[308] features Response : //response Contains object type! int64 object_type After compiling with success all of this and ...
user avatar
0 votes
1 answer
8 views

Hi, I am trying to transmit a numpy array in a response of a service but I have some trouble to convert it in the appropriate type. I saw the numpy_msg tutorials it works fine for messages but I don't ...
user avatar
0 votes
2 answers
36 views

Hi, I am trying to publish an array of images. Looking at ros wiki I couldn't find something relevant... I am attaching below my code... The publishing of the array should be at the "try" ...
user avatar
0 votes
1 answer
10 views

The initial pose array is really much bigger than it needs to be. How do I change it's initial dimensions? Originally posted by JediHamster on ROS Answers with karma: 995 on 2011-04-16 Post score: 1 ...
user avatar
0 votes
1 answer
40 views

Examples would be useful. Originally posted by GeniusGeeko on ROS Answers with karma: 299 on 2011-03-17 Post score: 8
user avatar