byu-magicc / rosplane

A basic fixed-wing autopilot for ROS - based on the textbook "Small Unmanned Aircraft: Theory and Practice" by Randy Beard and Tim McLain
94 stars 47 forks source link

Cannot load command parameter robot_description #78

Closed gy2256 closed 2 years ago

gy2256 commented 2 years ago

Hello,

I have encountered the following message RLException: while processing /home/xv/xplane_ros_ws/src/rosplane/rosplane_sim/launch/spawn_mav.launch: Invalid <param> tag: Cannot load command parameter [robot_description]: no such command [['/opt/ros/noetic/share/xacro/xacro.py', '/home/xv/xplane_ros_ws/src/rosplane/rosplane_sim/xacro/fixedwing.xacro', 'mav_name:=fixedwing', 'gazebo_namespace:=/gazebo', 'robot_namespace:=/']]. Param xml is <param name="robot_description" command=" $(find xacro)/xacro.py '$(arg model)' mav_name:=$(arg mav_name) gazebo_namespace:=$(arg gazebo_namespace)/gazebo robot_namespace:=$(arg robot_namespace)"/> The traceback for the exception was written to the log file

after running the command roslaunch rosplane_sim fixedwing.launch. Any idea what is causing the problem?

gy2256 commented 2 years ago

I found out the problem. I am using noetic and xacro.py has depreciated. Change $(find xacro)/xacro.py to $(find xacro)/xacro in the launch file solve the issue.