ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Hi rps2689,
In the same stack as image_view there is another node called image_saver that saves image files without needing to click anything.
This node saves images with jpg format, so if you need them to be in PNG I guess that the fastest way is to modify the filename definition in /PATH_TO_ROS_STACKS/image_pipeline/image_view/src/nodes:
std::string filename = (g_format % g_count % "jpg").str();
for this other:
std::string filename = (g_format % g_count % "png").str();
Hope this helps.
2 | fixed spelling |
Hi rps2689,
In the same stack as image_view there is another node called image_saver that saves image files without needing to click anything.
This node saves images with in jpg format, so if you need them to be in PNG I guess that the fastest way is to modify the filename definition in /PATH_TO_ROS_STACKS/image_pipeline/image_view/src/nodes:
std::string filename = (g_format % g_count % "jpg").str();
for this other:
std::string filename = (g_format % g_count % "png").str();
Hope this helps.
3 | forgot filename |
Hi rps2689,
In the same stack as image_view there is another node called image_saver that saves image files without needing to click anything.
This node saves images in jpg format, so if you need them to be in PNG I guess that the fastest way is to modify the filename definition in /PATH_TO_ROS_STACKS/image_pipeline/image_view/src/nodes/PATH_TO_ROS_STACKS/image_pipeline/image_view/src/nodes/image_saver.cpp:
std::string filename = (g_format % g_count % "jpg").str();
for this other:
std::string filename = (g_format % g_count % "png").str();
Hope this helps.