Robotics StackExchange | Archived questions

xacro file command cannot used in windows 10 with ros moveit package

Hello ,

I tried to use ROS moveit package on Windows 10 System with ROS Noeitic . I followed the tutortial of moveit installation which website is https://ms-iot.github.io/ROSOnWindows/Moveit/moveit_tutorials.html .

After this tutorial, I ran the command roslaunch pandamoveitconfig demo.launch rviz_tutorial:=true

then it showed the error below.

name 'python' is not defined when evaluating expression '[linkfmt.format(i) for i in python.range(8)]' when instantiating macro: configurecollisions (C:\rospackage\moveitws\src\pandamoveitconfig/config/arm.xacro) in file: C:\rospackage\moveitws\src\pandamoveitconfig\config\panda.srdf.xacro RLException: while processing C:\rospackage\moveitws\src\pandamoveitconfig\launch/movegroup.launch: while processing C:\rospackage\moveitws\src\pandamoveitconfig\launch/planningcontext.launch: Invalid tag: Cannot load command parameter [robotdescriptionsemantic]: command [['xacro', 'C:\rospackage\moveitws\src\pandamoveitconfig\config\panda.srdf.xacro', 'hand:=true', 'arm_id:=panda']] returned with code [2].

it said name 'python' not defined. I have tried to build xacro from source, but it didn't work.

Did anyone meet this problem before ? Or What could I try to fix this problem ? Thanks for your watching.

Have a nice day !!

System OS : Windows 10 ROS version : ROS Noetic

Asked by jasonlee on 2023-07-19 21:52:30 UTC

Comments

Answers