Comments (22)
Thanks a lot @anavsalkar. You saved me from a headache. Your solution worked.
from crazys.
Hello, I got the same issue that returns the same error message. I followed the instruction in the README.md for Ubuntu 18.04.
from crazys.
Ok! Let me test it on my PC. I wil give you back in a short time.
from crazys.
Ah, okay. Finally you managed to make it works, and this what really matters ;-) Enjoy!
from crazys.
Great! Thanks for letting the community know about this. I'll add these instructions to the README.md file in case someone else experiences the problem.
from crazys.
Thanks for opening your first issue here! Make sure that no other issues on the same topic have already been opened!
from crazys.
It seems that the problem lies in some hold definitions contained in the spawn_mav_crazyflie.launch
. Open the file, and add the --inorder
option as described in here https://answers.ros.org/question/354092/xacro-in-order-processing-for-husky_gazebo/. I hope this helps.
After trying to run the following command roslaunch husky_gazebo husky_playpen.launch from this tutorial: http://wiki.ros.org/husky_navigation/... I encounter the following error: ... logging to /home/daniel/.ros/log/2e76d420-a6c4-11ea-afba-2390d77f85eb/roslaunch-daniel-Inspiron-7559-14421.log Checking log directory for disk usage. This may take a while. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB. xacro: in-order processing became default in ROS Melodic. You can drop the option. 'bool' object has no attribute 'lower' when evaluating expression 'topbar_needed_kinect.lower() == 'true' or topbar_needed_kinect == '1' or topbar_needed_realsense == 'true' or topbar_needed_realsense == '1'' when processing file: /home/daniel/husky_ws/src/husky_description/urdf/husky.urdf.xacro RLException: while processing /home/daniel/husky_ws/src/husky_gazebo/launch/spawn_husky.launch: while processing /home/daniel/husky_ws/src/husky_control/launch/control.launch: while processing /home/daniel/husky_ws/src/husky_description/launch/description.launch: Invalid tag: Cannot load command parameter [robot_description]: command [['/opt/ros/noetic/lib/xacro/xacro', '/home/daniel/husky_ws/src/husky_description/urdf/husky.urdf.xacro', '--inorder', 'robot_namespace:=/', 'laser_enabled:=true', 'kinect_enabled:=false', 'realsense_enabled:=false', 'urdf_extras:=']] returned with code [2]. Param xml is The traceback for the exception was written to the log file
from crazys.
Thanks for the reply, I'll check it out. If it does not work, I might try re-installing with ubuntu 20.04 and ROS noetic.
from crazys.
Thanks for the quick reply. Unfortunately, the --inorder argument is already in the file as seen below.
If I try to launch the file with or without the --inorder, the same error appears.
from crazys.
Looking at your screens, especially the second, it seems there is a problem with the namespace. Could you try to run any other launch file in the repository? I would like to understand if this problem affects only the file you mentioned or all the scripts have suffer of the same issue. Thanks!
from crazys.
I tried it with:
mav_with_keyboard.launch and crazyflie2_swarm_hovering_example.launch, which also suffers from the issue.
from crazys.
Have you checked if the repository source is working correctly? I mean, run the following commands roscd rotors_control
and roscd rotors_gazebo
.
from crazys.
I am not sure if I follow but when I run the commands it shows the following:
I followed the Installation Instructions - Ubuntu 18.04 with ROS Melodic and Gazebo 9.
from crazys.
Ok, so everything seems to be right with the ROS environment. Have you tried to run the Crazyflie example without the controller?
from crazys.
If I try to run the file and comment the controller part, this is the result:
from crazys.
Good day sir, are there updates to a fix to this issue? Thanks!
from crazys.
I tried reinstalling it again in a fresh machine, and the error is still there. Problem regarding namespace.
from crazys.
I tried installing it with Ubuntu 20.04 and it works with no issues, I guess there's a problem within Ubuntu 18.04. Thanks for your time.
from crazys.
Ok great! Did you compare the launch files? I'm curious if the problem lies there, or is it just a problem with ROS. However, this incompatibility problem is new to me.
from crazys.
Unfortunately no as I have already deleted my Ubuntu 18.04 to install the new version.
from crazys.
Hello, I am facing the same issue on my 20.04 system. I correctly installed as per the instructions for Ubuntu 20.04.
I tried changing the "<param name="robot_description"......" in the "spawn_mav.launch" file including/ommiting '--inorder' or 'xacro' or 'xacro.py' as suggested in ( https://answers.ros.org/question/122021/xacro-problem-invalid-param-tag-cannot-load-command-parameter-robot_description/ ), without any success.
What's surprising is that I had no trouble working with RotorS installation from 'eth-asl' when I last used it 2 months back. Now, both the installations (earlier RotorS from eth-asl and CrazyS) give the same errors. Don't know if some update has caused this.
Thank you in advance for any help!
Just like the topic I posed, when I try to use roslaunch command to run in the terminal, I met this problem (as followed): Invalid tag: Cannot load command parameter [robot_description]: command [/opt/ros/groovy/stacks/xacro/xacro.py '/home/viki/ros_workspace/smartcar_description/urdf/smartcar.urdf.xacro'] returned with code [1]. Param xml is I have no idea how to solve this problem, I sincerely you could give the instructions about how to solve this problem. Thanks so much for your time. when I run the code rosrun xacro xacro.py /home/viki/ros_workspace/smartcar_description/urdf/smartcar.urdf.xacro to check the xacro, there is the information showed as followed: Expat parsing error. Check that: - Your XML is correctly formed - You have the xacro xmlns declaration: xmlns:xacro="http://www.ros.org/wiki/xacro" Traceback (most recent call last): File "/opt/ros/groovy/stacks/xacro/xacro.py", line 35, in xacro.main() File "/opt/ros/groovy/stacks/xacro/src/xacro.py", line 542, in main doc = parse(f) File "/usr/lib/python2.7/xml/dom/minidom.py", line 1920, in parse return expatbuilder.parse(file) File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 928, in parse result = builder.parseFile(file) File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 207, in parseFile parser.Parse(buffer, 0) xml.parsers.expat.ExpatError: junk after document element: line 197, column 0 Can you give me some information about how to solve the problem? Thanks so much!
from crazys.
I managed to solve the issue. Well, like I said it was indeed due to version updates. I removed xacro
and xacro-1.14.11.egg-info
directories from /opt/ros/noetic/lib/python3/dist-packages
folder using sudo rm -r ...
command and installed the 1.13.3 version of xacro using pip3 install xacro==1.13.3
. This simple downgrading from 1.14.11 to 1.13.3 worked for me, without any changes in launch files.
from crazys.
Related Issues (20)
- Adding a custom MAV HOT 6
- Catkin Build Issues HOT 5
- Quadcopter not flying HOT 2
- Leap Motion Integration HOT 4
- using the packages with ros noetic HOT 5
- name 'namespace' is not defined HOT 2
- Missing blades after using my own controller HOT 13
- Is it possible to use CrazyS at the same time with the real crazyflie? HOT 2
- Is it possible to forcefully stop the drone/s when it reached a target location? HOT 4
- opticalFlow.pb.h: HOT 2
- Question regarding publishing motor speed to Gazebo & some theoretical parameters HOT 6
- Unrecognized message type mav_msgs/Actuators. HOT 7
- Noetic Controller Package HOT 4
- rotors_gazebo_plugins:make error HOT 12
- Is it possible to control the acceleration and rpm of individual rotors, there Thrust ? HOT 4
- Possibility to do trajectory tracking instead of timed waypoints ? HOT 1
- Extending the model with Gazebo Plugins ? HOT 1
- Extending the model HOT 1
- overactuated hexacopter to quardcopter HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crazys.