Carla release与ros-bridge

Carla_0.9.10.1 rrelease版本(支持python2.7)

注意更新 ∼ \sim /.bashrc和 ∼ \sim /.profile中的路径

ros-bridge (tag: 0.9.10.1) 源码编译安装

源码地址:https://github.com/carla-simulator/ros-bridge/tree/0.9.10.1
安装说明: https://github.com/carla-simulator/ros-bridge/tree/0.9.10.1#setup

具体编译步骤:

#setup folder structure
mkdir -p ~/carla-ros-bridge/catkin_ws/src
cd ~/carla-ros-bridge
git clone https://github.com/carla-simulator/ros-bridge.git
cd ros-bridge
git checkout tags/0.9.10.1 -b 0.9.10.1 #检查一下是否有carla_ego_vehicle
#不直接下载carla_msgs
#git submodule update --init
#手动git clone 1.1.0版本的ros-carla-msgs到ros-bridge目录下
git clone https://github.com/carla-simulator/ros-carla-msgs.git
cd ros-carla-msgs
#版本切换
git checkout tags/1.1.0 -b 1.1.0  #检查是否正确切换
cd ..
cd ../catkin_ws/src
ln -s ../../ros-bridge
source /opt/ros/melodic/setup.bash
cd ..

#install required ros-dependencies
rosdep update
rosdep install --from-paths src --ignore-src -r

#build
catkin_make

打开UE4

cd CARLA_0.9.10.1
./CarlaUE4.sh

测试ros-bridge是否能运行成功

For Developers

source ~/carla-ros-bridge/catkin_ws/devel/setup.bash

Start the ros bridge (选择其中一个即可)

# Option 1: start the ros bridge
roslaunch carla_ros_bridge carla_ros_bridge.launch

# Option 2: start the ros bridge together with an example ego vehicle
roslaunch carla_ros_bridge carla_ros_bridge_with_example_ego_vehicle.launch

导入新的项目

https://github.com/patrickcleeve2/safety_score

  • 如果遇到地图问题,修改:
    safety_score/safety_score/launch/carla_ros_bridge_with_example_ego_vehicle_demo.launch 中的第15行,将Town10HD_Opt改为Town01

Carla_0.9.12 + ros_bridge 0.9.10.1

能够复现safety score项目,但是UI无法更新。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值