ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A answers.ros.org
Ask Your Question
0

Cannot run fetch gazebo simulator in Indigo

asked 2018-02-14 03:26:19 -0500

thezest gravatar image

updated 2018-02-14 03:36:49 -0500

It has been almost 4~5 hours now for the error below: I have installed ros-indigo (from source) on my ubuntu 16.04 Now I am trying to run fetch gazebo simulator by running: "roslaunch fetch_gazebo simulation.launch" But, I cannot avoid the error msg below. Can anyone help me ?

 ... logging to /home/hankm/.ros/log/8316172e-1167-11e8-9a7f-107b448e8cda/roslaunch-retina-22849.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

Traceback (most recent call last):
  File "/home/hankm/ros_catkin_ws/install_isolated/share/xacro/xacro.py", line 62, in <module>
    xacro.main()
  File "/home/hankm/ros_catkin_ws/install_isolated/lib/python2.7/dist-packages/xacro/__init__.py", line 687, in main
    process_includes(doc, os.path.dirname(args[0]))
  File "/home/hankm/ros_catkin_ws/install_isolated/lib/python2.7/dist-packages/xacro/__init__.py", line 246, in process_includes
    filename_spec = eval_text(elt.getAttribute('filename'), {})
  File "/home/hankm/ros_catkin_ws/install_isolated/lib/python2.7/dist-packages/xacro/__init__.py", line 485, in eval_text
    results.append(handle_extension(lex.next()[1][2:-1]))
  File "/home/hankm/ros_catkin_ws/install_isolated/lib/python2.7/dist-packages/xacro/__init__.py", line 473, in handle_extension
    return eval_extension("$(%s)" % s)
  File "/home/hankm/ros_catkin_ws/install_isolated/lib/python2.7/dist-packages/xacro/__init__.py", line 66, in eval_extension
    return substitution_args.resolve_args(str, context=substitution_args_context, resolve_anon=False)
  File "/home/hankm/ros_catkin_ws/install_isolated/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 316, in resolve_args
    resolved = _resolve_args(resolved, context, resolve_anon, commands)
  File "/home/hankm/ros_catkin_ws/install_isolated/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 329, in _resolve_args
    resolved = commands[command](resolved, a, args, context)
  File "/home/hankm/ros_catkin_ws/install_isolated/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 157, in _find
    pkg_path = rp.get_path(args[0])
  File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 203, in get_path
    raise ResourceNotFound(name, ros_paths=self._ros_paths)
rospkg.common.ResourceNotFound: fetch_description

ROS path [0]=/home/hankm/ros_catkin_ws/install_isolated/share/ros
ROS path [1]=/home/hankm/ros_catkin_ws/install_isolated/share
ROS path [2]=/home/hankm/ros_catkin_ws/install_isolated/stacks

while processing /home/hankm/ros_catkin_ws/install_isolated/share/fetch_gazebo/launch/include/fetch.launch.xml:
Invalid <param> tag: Cannot load command parameter [robot_description]: command [/home/hankm/ros_catkin_ws/install_isolated/share/xacro/xacro.py /home/hankm/ros_catkin_ws/install_isolated/share/fetch_gazebo/robots/fetch.gazebo.xacro] returned with code [1]. 

Param xml is <param command="$(find xacro)/xacro.py $(find fetch_gazebo)/robots/fetch.gazebo.xacro" name="robot_description"/>
The traceback for the exception was written to the log file
edit retag flag offensive close merge delete

Comments

Just out of curiosity: why did you install Indigo from source on 16.04?

gvdhoorn gravatar imagegvdhoorn ( 2018-02-14 03:35:46 -0500 )edit

Indigo doesn't support ubuntu 16.04 if I am not mistaken...

thezest gravatar imagethezest ( 2018-02-14 04:20:01 -0500 )edit

That is true. But the question was more: what made you install Indigo in the first place?

gvdhoorn gravatar imagegvdhoorn ( 2018-02-14 04:20:55 -0500 )edit

Fetch recommends ubuntu 14.04 and ros indigo Unfortunately, my linux box has 16.04. And I do not want to go back to 14.04

thezest gravatar imagethezest ( 2018-02-14 04:41:14 -0500 )edit

Looks like work is underway to get things released on Kinetic: fetchrobotics/fetch_gazebo#15. According to the last few commits it should already work.

gvdhoorn gravatar imagegvdhoorn ( 2018-02-14 04:43:41 -0500 )edit

As to your problem: do you have the fetch_description package in your workspace?

If you want to continue with your Indigo installation, I'd suggest creating an overlay workspace that extends your Indigo underlay. Then use regular catkin_make (or catkin build) again.

gvdhoorn gravatar imagegvdhoorn ( 2018-02-14 04:44:50 -0500 )edit

According to their manual, I am supposed to install Indigo ( http://docs.fetchrobotics.com/gazebo.... ) I didn't know fetch_gazebo is updated for ros-kinect.

Let me try your suggestion. Then, I will get back to you.

thezest gravatar imagethezest ( 2018-02-14 07:03:27 -0500 )edit

If at all possibe, I'd try to get the packages to work under Kinetic. Using a source install of Indigo under Xenial is a bit convoluted.

gvdhoorn gravatar imagegvdhoorn ( 2018-02-14 07:06:11 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-02-16 01:39:15 -0500

gvdhoorn gravatar image

Op had a source install of Indigo on Ubuntu Xenial that appeared to be missing (at least) the fetch_description package, which caused the problem.

Based on the work done in fetchrobotics/fetch_gazebo#15, it appeared that installing the Fetch packages on Kinetic is now actually possible, so OP opted for that.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2018-02-14 03:26:19 -0500

Seen: 99 times

Last updated: Feb 16