ROS STAGE教程4(Melodic Stage-4.3)stage_ros Segmentation fault (core dumped)

针对以前适用于stage 4.1, ROS Kinetic的world文件无法用于ROS Melodic系统

一致出现问题:Segmentation fault (core dumped)然后退出

步骤如下:

catkin_ws/src目录下:

git clone https://github.com/rtv/stage_ros.git

然后回到catkin_ws目录下,编译后stage_ros包用于替换系统原有包,用rospack find 查看路径是否正确!

catkin_make
source devel/setup.bash
rospack find stage_ros

修正后的world文件添加noise用于产生噪声,将show_data=0 关闭

define floorplan model
(
  # sombre, sensible, artistic
  color "gray30"

  # most maps will need a bounding box
  boundary 1

  gui_nose 0
  gui_grid 0
  gui_outline 0
  gui_move 0
  gripper_return 0
  fiducial_return 0
  ranger_return 1
)
resolution 0.02
interval_sim 20  # simulation timestep in milliseconds

# configure the GUI window
window
(
  size [ 0.33 0.33 0.2 ]
  #pose [ 0.0 0.0 0.0 0.0 ]
  localization "gps"
  localization_origin [ 0.0 0.0 0.0 0.0 ]

  # odometry error model parameters,
  # only used if localization is set to "odom"
  odom_error [ 0.0 0.0 0.0 0.0 ]
  #color "gray50"
  origin [ 0.0 0.0 0.0 0.0 ]
  #positonal things
  drive "diff"
  gui_nose 1
  laser(
        pose [ 0.0 0.0 0.5 0.0 ]
        alwayson 1
        )

)
robot
(
 name "roomba"
 pose [-8.0 6.0 0.0 0.0]
 color "green"
)

打开界面后可以选择 显示VIEW >> data

所有topic list

/clicked_point
/clock
/initialpose
/move_base_simple/goal
/rosout
/rosout_agg
/stage/roomba/cmd_vel
/stage/roomba/odometry
/stage/roomba/pose_ground_truth
/stage/roomba/ranger_0/laserscan
/tf
/tf_static

 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值