Closed Trevor233 closed 2 years ago
Hi,
This error would appear if you are not loading in TD3.world or TD3-2.world environments. The maps are located in DRL-robot-navigation/catkin_ws/src/multi_robot_scenario/launch/ and specified in https://github.com/reiniscimurs/DRL-robot-navigation/blob/be811a4050dfcb5c800a0a0e4000be81d48cfbc5/catkin_ws/src/multi_robot_scenario/launch/empty_world.launch#L16
It looks like you are launching the program with an empty world, if you would like to do so, you should remove the function that takes care of relocating the boxes (that are not there in the world file) in the reset function. I think commenting out this line should suffice https://github.com/reiniscimurs/DRL-robot-navigation/blob/be811a4050dfcb5c800a0a0e4000be81d48cfbc5/TD3/velodyne_env.py#L403 If not, then remove any line with a reference to the cardboard boxes in the env file
Really appreciate your answering! but when I ran the velodyne_td3.py I didn't change any of your code. So it's so weird that the program didn't load the TD3.world. Could you please tell me how to load the TD3.world? I'm such a rookie at gazebo sorry
Can you give me some information what your system looks like and how you set up the repo? That could help to see what went wrong.
Let's see if we can figure this out
sorry it's my bad for not providing these details.
The OS version is Ubuntu 18.04, ROS version is melodic, Python version is Python 2.7.17
Yes I would like to use virtual env and it's so embarrassing that I don't quite know which branch was used...
I just reinstall the program and launch it following your readme.md file
It can't load any modules in the TD3.world file yet.
I've tried to roslaunch the multi_robot_scenario.launch file in catkin_ws/src/multi_robot_scenario/launch/
it still shows nothing but a robot r1.
I tried to roslaunch empty_world.launch file in catkin_ws/src/multi_robot_scenario/launch/
and it just stuck in here
Is these situation should be happened or what it should be like when you roslaunch these two?
I'm so grateful for your patience
I will check the problem in detail once i have a bit more time, but it seems to me it is launching the wrong package here. You can see that is looking into /opt/ros/melodic... for the empty_world.launch file but it should be looking into the repo files. You could check if the repo was installed exactly in the same place and way as noted in the description of this repo (cloned into ~/). If not, then some absolute paths might need to be changed.
In any case, it is not the file in catkin_ws/src/multi_robot_scenario/launch that you should check. Check the one in TD3/assets as that is the one actually used in the repo.
Thanks for your patience. I just reinstalled the repo and I add my package path to the bash.rc file.Then I tried to run the program it became like this.The Rviz was just stuck here
It appears that it has loaded the right world but the gazebo still can't be activated and there are still some mistakes.I tried to look out the log file the error mentioned but it's so weird I didn't find it.
Hi,
Seems like the right world file is loading at least. What do you mean by 'gazebo still can't be activated'? Does your gazebo installation run on its own?
Also, check if you can launch the TD3.world or TD3-2.world on its own.
You can do this by:
cd ~/DRL-robot-navigation/catkin_ws/src/multi_robot_scenario/launch
gazebo TD3-2.world
Let me know what comes out of that
Also just a simple restart of the computer might help if you haven't done that already
Thank you so much I've check the world file it could be launch. And it turns out that I didn't install a module named 'netifaces' under my working env. The problem has been solved. Again, really appreciate your kind and patience!
Great that you managed to solve the problem!
No worries, development in ROS is a fickle thing and I was absolutely lost when I started out, so I understand trying to solve these issues very well.
Good luck with the development!
Hi Reinis, so sorry to bother you. When i ran python3 velodyne_td3.py, the gazebo can not be activated, and the rviz running was a mess like this![2022-04-26 19-26-11屏幕截图](https://user-images.githubusercontent.com/104433600/165292001-f226a37c-287f-4d16-a815-c1a21f476449.png)
it seems like the modules of world can not be loaded, and the errors was like this![2022-04-26 19-25-51屏幕截图](https://user-images.githubusercontent.com/104433600/165292151-104544ce-4e6e-4408-9823-42f65712e869.png)
Could you please tell me how to fix this, thx!