1,【ROS】[rosrun] Couldn't find executable named
rosrun工具路径问题由于生成的工具很多都在lib下,所以添加到ros路径下
bashrc文件中添加
export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:/opt/ros/kinetic/lib
2,
rosbag 解压
export.launch
<launch>
<node pkg="rosbag" type="play" name="rosbag" args="-d 2 $(find image_view)/test.bag"/>
<node name="extract" pkg="image_view" type="extract_images" respawn="false" output="screen" cwd="ROS_HOME">
<remap from="image" to="/camera/image_raw"/>
</node>
</launch>
所提取的图片在~/.ros
路径下,将其移到你的目标文件中,如:
cd ~
mkdir Example
mv ~/.ros/*.jpg ~/Example
3,