【Windows配置三】Python3.6安装rosbag

以下所以命令,均需在激活 anaconda 环境下进行安装

conda activate [your anaconda]
//例
conda activate pytorch

1、安装rospy

pip install -i https://pypi.douban.com/simple rospy

rospy地址:https://rospypi.github.io/simple

2、安装rogbag

pip install --extra-index-url https://rospypi.github.io/simple/ rosbag

如果超时,可以下载.whl,本地安装

pip install rosbag-1.15.11-py2.py3-none-any.whl

whl下载地址:https://rospypi.github.io/simple/

3、安装roslz4

pip install roslz4 --extra-index-url https://rospypi.github.io/simple/

4、安装sensor_msgs和geometry_msgs

pip install sensor_msgs --extra-index-url https://rospypi.github.io/simple/
pip install geometry_msgs --extra-index-url https://rospypi.github.io/simple/

5、安装cv_bridge

cv_bridge下载(源代码https://github.com/ros-perception/vision_opencv):https://codeload.github.com/ros-perception/vision_opencv/zip/refs/heads/noetic
cmd打开命令行窗口,在命令窗口里cd至cv_bridge文件夹安装前必须激活anaconda

conda activate pytorch //必须激活anaconda 
python setup.py install

重要:如报错No module named ‘cv_bridge.boost’

pip install cv_bridge-1.13.0.post0-py2.py3-none-any.whl

whl 下载地址:https://files.cnblogs.com/files/yunhgu/rosbag_cv_bridge.zip

所需文件已上传
https://download.csdn.net/download/a_happy_bird/85721502

参考

http://t.csdn.cn/6TqYa //windows 10 python 3.7.9 install rosbag
https://www.xin3721.com/pythonTech/python37323.html //win10 + python3 + 安装rosbag & cv_bridge & sensor_msgs+解析bag文件生成pcd和图片
http://t.csdn.cn/1gZwk //python pip 安装第三方来源

你可能感兴趣的:(Window配置,python,windows,opencv)