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

Revision history [back]

click to hide/show revision 1
initial version

Hello Tejas,

Just check if you are getting the camera_info topic. You can get this by typing rostopic list then try to view information of that you will get all details like height, width and other details which you required.

rostopic echo  <camers-info-topic>#/camera/color/camera_info

Hello Tejas,

exact size of Image.

Just check if you are getting the camera_info topic. You can get this by typing rostopic list then try to view information of that you will get all details like height, width and other details which you required.

rostopic echo  <camers-info-topic>#/camera/color/camera_info

exact format

Have a look at this link you will get exact formate of an image message in ROS.

http://docs.ros.org/en/melodic/api/sensor_msgs/html/msg/Image.html

Hello Tejas,

exact size of Image.

You can also get size from http://docs.ros.org/en/melodic/api/sensor_msgs/html/msg/Image.html by selecting this variable in your code.

uint32 height
uint32 width

Note: afaik rostopic echo /camera/image_raw You are getting full image data over here but each image has a huge matrix so you are not able to view the full message properly from yoursterminal.

Just check if you are getting the camera_info topic. You can get this by typing rostopic list then try to view information of that you will get all details like height, width and other details which you required.

rostopic echo  <camers-info-topic>#/camera/color/camera_info

exact format

Have a look at this link you will get exact formate of an image message in ROS.

http://docs.ros.org/en/melodic/api/sensor_msgs/html/msg/Image.html

Hello Tejas,

exact size of Image.

You can also get size from http://docs.ros.org/en/melodic/api/sensor_msgs/html/msg/Image.html by selecting this variable in your code.

uint32 height
uint32 width

Note: afaik rostopic echo /camera/image_raw You are getting full image sensor_msgs/Image data over here but each image has a huge matrix so you are not able to view the full message properly from yoursterminal. your terminal.

Just check if you are getting the camera_info topic. You can get this by typing rostopic list then try to view information of that you will get all details like height, width and other details which you required.

rostopic echo  <camers-info-topic>#/camera/color/camera_info

exact format

Have a look at this link you will get exact formate of an image message in ROS.

http://docs.ros.org/en/melodic/api/sensor_msgs/html/msg/Image.html

Hello Tejas,

exact size of Image.

You can also get size from http://docs.ros.org/en/melodic/api/sensor_msgs/html/msg/Image.html by selecting this variable in your code.

uint32 height
uint32 width

Note: afaik rostopic echo /camera/image_raw You are getting full sensor_msgs/Image data over here but each image has a huge matrix so you are not able to view the full message properly from your terminal.

Just check if you are getting the camera_info topic. You can get this by typing rostopic list then try to view information of that you will get all details like height, width and other details which you required.

rostopic echo  <camers-info-topic>#/camera/color/camera_info

exact format

Have a look at this link you will get exact formate of an image message in ROS.

http://docs.ros.org/en/melodic/api/sensor_msgs/html/msg/Image.html

Hello Tejas,

exact size of Image.

a. first way to get size. You can also get size from http://docs.ros.org/en/melodic/api/sensor_msgs/html/msg/Image.html by selecting this variable in your code.

uint32 height
uint32 width

Note: rostopic echo /camera/image_raw You are getting full sensor_msgs/Image data over here but each image has a huge matrix so you are not able to view the full message properly from your terminal.

b. second way to get size.

Just check if you are getting the camera_info topic. You can get this by typing rostopic list then try to view information of that you will get all details like height, width and other details which you required.

rostopic echo  <camers-info-topic>#/camera/color/camera_info

exact format

Have a look at this link you will get exact formate of an image message in ROS.

http://docs.ros.org/en/melodic/api/sensor_msgs/html/msg/Image.html