ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Cannot run fetch gazebo simulator in Indigo

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

thezest gravatar image

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

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 image gvdhoorn  ( 2018-02-14 03:35:46 -0600 )edit

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

thezest gravatar image thezest  ( 2018-02-14 04:20:01 -0600 )edit

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

gvdhoorn gravatar image gvdhoorn  ( 2018-02-14 04:20:55 -0600 )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 image thezest  ( 2018-02-14 04:41:14 -0600 )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 image gvdhoorn  ( 2018-02-14 04:43:41 -0600 )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 image gvdhoorn  ( 2018-02-14 04:44:50 -0600 )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 image thezest  ( 2018-02-14 07:03:27 -0600 )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 image gvdhoorn  ( 2018-02-14 07:06:11 -0600 )edit

2 Answers

Sort by » oldest newest most voted
1

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

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
0

answered 2019-08-14 02:38:11 -0600

We at Fetch Robotics skipped Kinetic. Some packages are available but not all, most were tested to some extent but active support went into Indigo. Now we're supporting Melodic.

If I or someone from Fetch had seen this Question back in 2018, our recommendation would have been run 16.04 on your laptop with a Docker image based on 14.04 with Indigo.

edit flag offensive delete link more

Question Tools

Stats

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

Seen: 490 times

Last updated: Aug 14 '19