[ROS] Use irobot create in gazebo with ROS

2014年8月24日 10:08

So far there is no complete tutorial to guide users how to create an irobot create in gazeboros. I find a helpful answer from Saurav Agarwal at [1]. Based on his anwser, I post my steps here:

Tags: ubuntu ROS
评论(2842) 阅读(25511)

[Mac OSX]Error: The `brew link` step did not complete successfully

2014年8月18日 12:04

When I use brew to install PySide for Julia's PyPlot package, there is an error saying "The `brew link` step did not complete successfully" (see figure below)

Tags: mac os
评论(290) 阅读(30759)

[ROS/C++] Using smart pointers in containers

2014年8月17日 17:35

Problem Description:

The memory leak problem was found when I tested the ROS simulation of a large number of robots, say, 50. Basically I have one simulator node and 50 robot controller nodes. Occasionally after running the program for a while, the simulator node may throw a bad_alloc exception and then terminated.

Tags: c++ ROS
评论(49) 阅读(6229)


2014年8月17日 16:39

看到了一篇很好的文章"Perfect Full Page Background Image".文中总结了多种让图片铺满整个屏幕的方法,不论屏幕的分辨率是多少。有用纯CSS实现的, 也有用 JQuery实现的,各种方法都提供了示例。

个人喜欢由Corey Worrell提供的纯CSS方法。这里没有直接用background-image,而是直接用的foreground image作为背景图。html部分如下:

<div id="bg">
  <img src="images/bg.jpg" alt="background image">

评论(42) 阅读(3775)

[ROS] Solution to fix "Unable to handle 'index' format version '2', please update rosdistro" problem

2014年8月12日 07:37

When I upgrade ROS from Hydro to Indigo on Ubuntu 14.04 Trusty, I followed the installation instructions posted at http://wiki.ros.org/indigo/Installation/Ubuntu. However, after typing in command "rosdep update", I met a problem saying :

rosdep version: 0.10.24

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/rosdep2/main.py", line 121, in rosdep_main
    exit_code = _rosdep_main(args)
  File "/usr/lib/pymodules/python2.7/rosdep2/main.py", line 264, in _rosdep_main
    return _no_args_handler(command, parser, options, args)
  File "/usr/lib/pymodules/python2.7/rosdep2/main.py", line 272, in _no_args_handler
    return command_handlers[command](options)
  File "/usr/lib/pymodules/python2.7/rosdep2/main.py", line 437, in command_update
  File "/usr/lib/pymodules/python2.7/rosdep2/sources_list.py", line 433, in update_sources_list
    for d, dist in get_index().distributions.items():
  File "/usr/lib/pymodules/python2.7/rosdep2/rosdistrohelper.py", line 58, in get_index
    _RDCache.index = rosdistro.get_index(_RDCache.index_url)
  File "/usr/lib/pymodules/python2.7/rosdistro/__init__.py", line 109, in get_index
    return Index(data, base_url)
  File "/usr/lib/pymodules/python2.7/rosdistro/index.py", line 50, in __init__
    assert int(data['version']) == 1, "Unable to handle '%s' format version '%d', please update rosdistro" % (Index._type, int(data['version']))
AssertionError: Unable to handle 'index' format version '2', please update rosdistro

评论(113) 阅读(3395)