ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

kbabu's profile - activity

2022-02-22 06:24:01 -0500 received badge  Good Question (source)
2022-01-13 14:24:09 -0500 received badge  Nice Question (source)
2016-12-11 21:40:08 -0500 received badge  Great Question (source)
2016-10-07 07:47:48 -0500 received badge  Good Question (source)
2012-09-25 10:17:44 -0500 received badge  Famous Question (source)
2012-09-25 10:17:44 -0500 received badge  Notable Question (source)
2012-08-18 01:36:05 -0500 received badge  Popular Question (source)
2012-08-18 01:36:05 -0500 received badge  Notable Question (source)
2012-08-18 01:36:05 -0500 received badge  Famous Question (source)
2012-08-07 04:29:37 -0500 received badge  Popular Question (source)
2012-02-17 20:43:30 -0500 received badge  Nice Question (source)
2012-02-14 09:43:16 -0500 received badge  Student (source)
2012-02-14 07:27:15 -0500 asked a question 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 element.

using a construct such as:

int32 x=100

regards x as a constant when the msg headers are generated.

Is what I'm looking for possible at all? Thanks much

2011-11-22 02:27:22 -0500 asked a question PointCloud vs. PointCloud2 for unstructured point clouds

Hi, I have an application that publishes an unstructured point cloud, which in turn will be used to update a costmap. I remember reading that PointCloud is going to be retired in future a versions in favor of PointCloud2.

However, a cursory look at PointCloud2 seems as though it needs well-defined height & width fields. How can I represent an unstructured point cloud using PointCloud2?

Can I simply set height to 1 and width to N, and expect the library to treat it as a simple vector of (x,y,z) co-ordinates?

K