When I run the roslaunch command, an RLException error occurs
The text is the same as the title. I tried various methods on google to solve this error. But it doesn't work, so I need your help. Anyone is welcome, please help me to solve this error.
awesometech@awesometech:~/catkin_ws$ roslaunch urs_wearable world.launch
... logging to /home/awesometech/.ros/log/165b93fc-9d30-11ed-967c-a99cf3fa13f4/roslaunch-awesometech-4851.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.
RLException: while processing /home/awesometech/catkin_ws/src/URSSimEnvironments/urs_wearable/launch/world.launch: while processing /home/awesometech/catkin_ws/src/URSSimEnvironments/urs_wearable/launch/world.launch: .. Invalid tag: maximum recursion depth exceeded while calling a Python object.
Arg xml is The traceback for the exception was written to the log file
this is my code I think there is no error in this code.
<?xml version="1.0"?>
<launch>
<include file="$(find urs_wearable)/launch/world.launch">
<arg name="world" value="$(find urs_wearable)/worlds/test.world" />
<arg name="reference_latitude" value="32.319939" />
<arg name="reference_longitude" value="-106.763657" />
</include>
</launch>
The path was specified correctly. I don't know how many days I've been struggling with this problem. please anyone give me a solution
Asked by jun-gil on 2023-01-26 02:19:08 UTC
Answers
You appear to be roslaunch
-ing a file called world.launch
, which is hosted by a package called urs_wearable
.
That file include
s a file called world.launch
, which is also located in the package urs_wearable
(ie: the same package).
From the traceback, it's clear this leads to the situation where roslaunch
is trying to load the file world.launch
, which tries to include
the file world.launch
, which tries to include
the file world.launch
, which tries to include
the file world.launch
, which tries to include
the file world.launch
, which tries to include
the file world.launch
, etc, ad infinitum -- or in this case, until the Python interpreter reaches an internal limit and "just gives up".
Summarising: you need to prevent the infinite recursion.
Could you clarify why you include
the same file you are already trying to roslaunch
? If you avoid that, I believe you'd avoid the problem you encounter.
Asked by gvdhoorn on 2023-01-26 04:01:24 UTC
Comments
As you said, I removed the
Asked by jun-gil on 2023-01-27 00:31:57 UTC
Comments