ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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
2 | No.2 Revision |
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
3 | No.3 Revision |
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
4 | No.4 Revision |
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
5 | No.5 Revision |
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
6 | No.6 Revision |
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