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

cob_bringup problem: File "/opt/ros/indigo/lib/python2.7/dist-packages/xacro/__init__.py", line 369, in eval_lit raise XacroException("Property wasn't defined: %s" % str(ex)) xacro.XacroException: Property wasn't defined: u'laser_front_roll'

asked 2016-02-08 14:27:00 -0500

Farid gravatar image

Hi, I'm trying to launch the robot ($ roslaunch cob_bringup robot.launch), however, I get the following error:

Invalid <param> tag: Cannot load command parameter [robot_description]: command [/opt/ros/indigo/share/xacro/xacro.py '/opt/ros/indigo/share/cob_hardware_config/raw3-2/urdf/raw3-2.urdf.xacro'] returned with code [1].

Also ($ rosrun xacro xacro.py /opt/ros/indigo/share/cob_hardware_config/raw3-2/urdf/raw3-2.urdf.xacro ) returns:

Traceback (most recent call last):
  File "/opt/ros/indigo/share/xacro/xacro.py", line 62, in <module>
    xacro.main()
  File "/opt/ros/indigo/lib/python2.7/dist-packages/xacro/__init__.py", line 696, in main
    eval_self_contained(doc)
  File "/opt/ros/indigo/lib/python2.7/dist-packages/xacro/__init__.py", line 626, in eval_self_contained
    eval_all(doc.documentElement, macros, symbols)
  File "/opt/ros/indigo/lib/python2.7/dist-packages/xacro/__init__.py", line 553, in eval_all
    eval_all(body, macros, scoped)
  File "/opt/ros/indigo/lib/python2.7/dist-packages/xacro/__init__.py", line 532, in eval_all
    eval_all(cloned, macros, symbols)
  File "/opt/ros/indigo/lib/python2.7/dist-packages/xacro/__init__.py", line 609, in eval_all
    result = eval_text(at[1], symbols)
  File "/opt/ros/indigo/lib/python2.7/dist-packages/xacro/__init__.py", line 483, in eval_text
    results.append(handle_expr(lex.next()[1][2:-1]))
  File "/opt/ros/indigo/lib/python2.7/dist-packages/xacro/__init__.py", line 470, in handle_expr
    return eval_expr(lex, symbols)
  File "/opt/ros/indigo/lib/python2.7/dist-packages/xacro/__init__.py", line 444, in eval_expr
    result = eval_term(lex, symbols)
  File "/opt/ros/indigo/lib/python2.7/dist-packages/xacro/__init__.py", line 418, in eval_term
    result = eval_factor(lex, symbols)
  File "/opt/ros/indigo/lib/python2.7/dist-packages/xacro/__init__.py", line 398, in eval_factor
    return neg * eval_lit(lex, symbols)
  File "/opt/ros/indigo/lib/python2.7/dist-packages/xacro/__init__.py", line 369, in eval_lit
    raise XacroException("Property wasn't defined: %s" % str(ex))
xacro.XacroException: Property wasn't defined: u'laser_front_roll'

Having a look at this link wouldn't solve my problem though cuz mine has sth to do with exception about laser_front_roll which doesn't exist.

Can anybody help me out with such problem? Cheers,

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-02-09 01:18:40 -0500

Seems as you don't have the correct version of the cob_calibration_data package where laser_front_roll is defined. Are you using the release version or do you have overlays?

edit flag offensive delete link more

Comments

running ( $ sudo apt-get install ros-indigo-cob-calibration-data ) returns

ros-indigo-cob-calibration-data is already the newest version.

It should be a release version, am not sure though cuz it's a lab's pc.

Farid gravatar image Farid  ( 2016-02-09 05:38:06 -0500 )edit

And this problem popped up when I updated and upgraded ros operating system.

   $ sudo apt-get update && sudo apt-get upgrade

before it was working totally fine.

Farid gravatar image Farid  ( 2016-02-09 05:39:59 -0500 )edit

The package version is 0.6.4-0trusty-20160110-105926-0800, and the parameter files seems to be there.

tommyo gravatar image tommyo  ( 2016-02-11 12:02:29 -0500 )edit

Some packages were held back by the package manager. Now everything seems to be up to date but some transforms are missing.

tommyo gravatar image tommyo  ( 2016-02-11 15:46:23 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2016-02-08 14:27:00 -0500

Seen: 281 times

Last updated: Feb 09 '16