Questions tagged [sensor-msgs]

The tag has no usage guidance.

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

Pointcloud Upsampling

I have a small pointcloud. From a space point of vies it can be considered a 4x4 matrix: ...
Antonio Marangi's user avatar
0 votes
1 answer
40 views

Node publishes only half of expected frequency

I'm writing a ROS2 C++ node for a camera. In the code we create a callback from the camera driver which then publishes the image. When we measure the topic frequency we only get half the actual ...
user avatar
0 votes
1 answer
16 views

Rosserial Arduino custom message not being generated

I have made a custom message called gas_msg.msg. It is located in a package named gas_sensor_msg. The custom message has been created with catkin_make. I am now trying to make the custom message files ...
user avatar
0 votes
1 answer
1 view

unexpected output from laser assembler

Hi everyone, I have a topic that publishes sensor_msgs/Pointcloud2 and my intention was to merge every 2 pointclouds of these messages. In order to do that I used point_cloud_assembler with this ...
user avatar
0 votes
1 answer
55 views

How to calculate sensor_msgs/LaserScan data?

I have made a bag: 2021-02-15-11-32-28.bag and converted it in the: rplidarA1.csv File. So I have 2 Mb data and the following fields: %time field.header.seq field.header.stamp field.header.frame_id ...
user avatar
0 votes
2 answers
39 views

how to subscribe to laser /scan topic and publish a customized scan topic back

hi, i want to consider any 72 points from the 'scan' topic for my other application. Currently the lidar i am using gives around 2000 points. I want to take only 72 points out of it and publish it as ...
user avatar
0 votes
1 answer
42 views

Unable to import sensor_msgs in ros2 publisher code?

I am actually trying to wrap a IMU driver in ROS2 environment . I have the requirement to import sensor_msgs/IMU . However I am not able to import it in my current code. NOTE:- I have installed foxy ...
user avatar
0 votes
2 answers
46 views

How to convert LaserScan to PCLPointCloud2?

Currently, I'm trying to read the laserscanner data and convert to PCLPointCloud2 for processing. I took the pcl_ros tutorial code and adapted the callback parameter to ...
user avatar
0 votes
2 answers
45 views

Why is point_cloud2.py missing from sensor_msgs in ROS2?

After subscribing to a PointCloud2 message in ROS2, I want to extract the PointCloud2 points from the message. In ROS1 I could do that with: sensor_msgs.point_cloud2.read_points(). However, ...
user avatar
0 votes
1 answer
32 views

Error importing sensor_msgs/JointState

Hi, I am trying to run ROS on windows and to do that i followed this tutorial http://wiki.ros.org/Installation/Windows I created a shortcut for Ros Command window from step 6 of the tutorial and than ...
user avatar
0 votes
1 answer
8 views

Joy.msgs line44 problem

Hi, when i want to open the Joy.msg file in the sensor_msgs directory for arduino, i get the following error: Parsing Joy.msg as OLE file failed at /usr/bin/msgconvert line 44. For spesification I ...
user avatar
0 votes
1 answer
24 views

How to visualize a message of type sensor_msgs/PointCloud2[] in Rviz?

Hey guys, I hope you all are doing well. I am facing a problem related to visualizing a topic in Rviz. So, I have a custom message of type sensor_msgs/PointCloud2[]....
user avatar
0 votes
1 answer
16 views

Using sensor_msgs for control?

I assume, based on the name, that there is a convention of only using sensor_msgs for feedback from sensors. There are times, though, when it would be nice to set a sensor value as a goal or target to ...
user avatar
0 votes
1 answer
18 views

Transform PointCloud2 doesn't work as expected

I tried to transform my pointcloud2 in python like stated here. But somehow the result is not correct. I am not able to visualize the pointcloud I get as a result in rviz. This is why I tried to just ...
user avatar
0 votes
1 answer
46 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
10 views

Can't rosdep install uvc_camera, missing rosdep definition for sensor_msgs

Hi, Completely new to ROS. I am using indigo on Ubuntu 14.04. I am following a recipe of steps that a colleague has followed before. Have done a new install of ROS according to the install ...
user avatar
0 votes
1 answer
3 views

subscribe sensor_message/Image without opencv

I would like to print(or just read) the content(i.e. the 'data' field) of a ROS topic of type "sensor_message/Image", but without OpenCV(for performance consideration). Here is a snippet of ...
user avatar
0 votes
1 answer
18 views

How should I interpret the sensor_msgs/LaserScan.angle_min?

Hello, I am using the RPLidar A2 on my ROSbot 2.0 for environment detection. I am currently trying to implement a side-distance measurer that measures the distance of four sides, let's say NORTH, EAST,...
user avatar
0 votes
1 answer
5 views

Offset between input (sensor_msgs::PointCloud2) and its conversion to (pcl::PointCloud<pcl::PointXYZ>) [RViz]

I have a input cloud called cloud of type sensor_msgs::PointCloud2ConstPtr& and want to convert it to ...
user avatar
0 votes
1 answer
34 views

std_msgs/sensors_msgs does not name a type

Hi, I have a project with 2 files a main .cpp and a .hpp. The .cpp includes #include "sensor_msgs/msg/nav_sat_fix.h" and declares a variable ...
user avatar
0 votes
1 answer
13 views

Client [/rviz_15....] wants topic /odom to have datatype/md5sum [sensor_msgs/PointCloud/d8....], but our version has [nav_msgs/Odometry/cd

I’m getting this error: The robot launch file starts and all appears good. I start rviz then I get one Pose array dataset then this error ...
user avatar
0 votes
1 answer
22 views

Edit encoding of sensor_msgs/Image message

I have a sensor_msgs/Image message that I'm unable to use with standard ROS packages like stereo_image_proc because the "encoding" is described as "8UC1". I want it to be ...
user avatar
0 votes
1 answer
7 views

Meaning of status fields in sensor_msgs/NavSatStatus

The NavSatStatus message has a field for status, with 4 options: No fix, fix, fix with satellite augmentation, fix with ground-based augmentation. No fix and fix make sense, but what is the meaning of ...
user avatar
0 votes
1 answer
8 views

segmentation fault (core dumped) while converting sensor_msgs to cvImage

I am trying to subscribe the topic /camera/aligned_depth_to_color/image_raw of realsense SR300. Here is the node: ...
user avatar
0 votes
2 answers
13 views

Gazebo segfaults when Lidar senses an obstacle

I am using Ros Kinetic on Ubuntu 16.04. I am trying to simulate a quadrotor with lidar attached to it. I have found the Rotors_Simulator repository and manually added a Hokuyo lidar for simulation in ...
user avatar
0 votes
1 answer
37 views

Failed to find match for field 'intensity' with Ouster LIDAR

Hi, I tried to convert Ouster lidar packets to pcl::PointCloud<pcl::PointXYZI> using the standard pcl::fromROSMsg. I have ...
user avatar
0 votes
1 answer
11 views

Callback CompressedImage /w image_transport

Hello, I am trying to get the images of a kinect topic via image_transport. I added a Subscriber like this ...
user avatar
0 votes
1 answer
16 views

sensor_msgs.msg Image type value error. "Not a message data class"

I'm getting a value error when trying to run this code: front_image_pub = rospy.Publisher('/front_camera/image_raw', Image, queue_size=10) The precise error is: <...
user avatar
0 votes
1 answer
37 views

Accessing values while iterating points in sensor_msgs::PointCloud2 from sensor_msgs::PointCloud2ConstIterator

I am writing a node that subscribes to a topic of type sensor_msgs::PointCloud2. In the callback I want to iterate the points in the point cloud using ...
moooeeeep's user avatar
  • 154
0 votes
1 answer
12 views

sensor_msgs - Can't build tutorial project

I am trying to pass images as messages in a simple ROS project. I'm a complete beginner in ROS and robotics. The tutorial I'm trying to follow is here: http://wiki.ros.org/cv_bridge/Tutorials/...
user avatar
0 votes
2 answers
12 views

How to change angle_min- angle_max and time_increment on laserscan message

Hi, I use urg-04lx ug01 hokuyo lidar and its range 240 degree. but in LaserScan.msg shows like below: angle_min: -2.35619449615 angle_max:2.09234976768 angle_increement: 0.00613592332229 ...
user avatar
0 votes
1 answer
4 views

Unable to print subscribed sensor_msgs with ROS_INFO

Hello and thanks for reading my post. I am trying to subscribe to a topic from an imu using the sensor_msgs::MagneticField. This topic is published by a 3rd party package called mavros. I am trying to ...
user avatar
1 vote
2 answers
8 views

how to aggregate several PointCloud2 messages into one?

After converting my RPLIDAR's laser messages to PointCloud2 form (using hector_laser_to_pointcloud) I can visualize them in RVIZ and when doing rostopic echo I can see the messages coming through. How ...
user avatar
0 votes
1 answer
1 view

Problem with data from subscriber not going anywhere

Related question: https://answers.ros.org/question/278181/issues-with-seg-faults-and-node-not-publishing-anything/ In my code there are two subscriber functions. I want to pass the shared pointer data ...
user avatar
0 votes
1 answer
32 views

reading VelodyneScan from bagfile - offline

I am trying to read a bagfile containing multiple velodyne data. I want to do this preferably without rosbag play as sometimes from my prev experience due to computation issues it may skip reading ...
user avatar
0 votes
1 answer
6 views

Problems reading PointCloud2 message

Hello everyone, I'm trying to find an object by color and then get the distance to it. However I'm having trouble reading the PointCloud2 message. I can see through RVIZ that the topic is sending the ...
user avatar
0 votes
1 answer
11 views

Trying to understand PointCloud2 msg

Hello, Can someone please post a clear explanation of how to understand pointcloud2 message? I want to get x,y,z point from the message and I found a solution to do that, but I am not able to ...
user avatar
0 votes
2 answers
1 view

Clarification on sensor_msgs/Laserscan.msg

I am wanting to extract features from laser data I have acquired using ROS from Pepper in the form of a sensor_msgs/Laserscan.msg. However I am struggling to understand certain parts of the message. ...
user avatar
0 votes
1 answer
3 views

How to pass an image (subscribed from a image publishing topic) using service?

Hello People, I am trying to get image from a camera fitted on a robot and pass them using services. I will use a client to grab images from the server and later process it according to the need. It ...
user avatar
0 votes
1 answer
4 views

how to Transform Pointcloud2 with tf

Hi, I tried to run the python code on this link http://answers.ros.org/question/9103/how-to-transform-pointcloud2-with-tf/ and got such an error below : Traceback(most recent call last): File "/...
user avatar
0 votes
2 answers
40 views

Convert depth image to sensor_msgs::PointCloud2

Hi all, I have an Asus Xtion Pro RGB-D camera, I'm using this node to acquire images: https://github.com/xqms/xtion which has tremendous performance improvements w.r.t. OpenNI2. To convert the depth ...
user avatar
0 votes
1 answer
3 views

Robot doesn't explore when used with frontier_exploration, move_base and gmapping

Hello everyone, I am currently working on a small project to automate the motion of a robot when implementing SLAM. Facts: 1. The robot platform used is Pioneer_p3dx and sensor mounted on top is ...
user avatar
0 votes
1 answer
3 views

Best practice for creating new frame names?

I have a simple two-wheeled platform, and I'm trying to publish ultrasonic range data via the standard range message type. This message type requires a header with a frame_id. The sensors are attached ...
user avatar
0 votes
1 answer
1 view

sensor_msgs/Imu Frame of reference?

What is the frame of reference for sensor_msgs/Imu? It seems vague. If the gyro rotate in counter clockwise direction around +Z direction is angular_velocity.z positive or negative? If the robot is ...
user avatar
0 votes
1 answer
4 views

sensor_msg:Imu format specification

Hi, I was confused by what data should go into the sensor_msg::Imu message. It has a field called linear_acceleration. The existing users and provider assume that it takes acceleration containing the ...
user avatar
0 votes
1 answer
26 views

roslibjs subscribe to sensor_msgs/image

Hello, I couldn't find an example of how to subscribe to a sensor_msgs/image and display it in a html5 canvas. I already have a page running and I can somehow access the data, but it won't display in ...
user avatar
0 votes
1 answer
7 views

Two Topics with Same Callback

Hi everyone, I am subscribing to two different topics (each with different md5sums) using a single callback. I am using the message_filters class to achieve this. ...
user avatar
0 votes
1 answer
75 views

How to use sensor_msgs/Image message?

Hi I'm a beginner on ROS. I want to use a topic "/usb_cam/image_raw". (this topic is usb_cam package) So I made a package, and a Subscriber. However, there is still error in the ...
user avatar
0 votes
1 answer
3 views

Transform geometry_msgs/TransformedStamped() to sensor_msgs/PointCloud2 on rospy

Hi people, I have a geometry_msgs/TransformedStamped() vector which I am trying to translate to sensor_msgs/PointCloud2. I have looked aroun in the rospy api docs but nothing clear comes out strking. ...
user avatar
0 votes
1 answer
8 views

Destination encoding for ros image to opencv image conversion

I am trying to create an OpenCV image from a ros image using this . I am subscribing to a topic /camera/depth/img_rect_color which is of the type ...
user avatar