Closed camontblanc closed 5 years ago
Hi @camontblanc You need to source the environments, please use the following script to do that.
Hi @rkojcev ! First, thank you for your answer! Do I have to do that even though I am not using any of the MARA examples? Basically, what I am doing is running python in the shell, I import gym and gym_gazebo2 (clearly, I have already sourced ROS2 Crystal) but when I do: gym.make('MARA-v0') I have the error I told you before.
Thank you for your time!
Hi @camontblanc,
Hi! I followed (again) the step in this repo but I keep having the same error.
Make sure you use crystal release in both repos (gym-gazebo2 and MARA), master branch is dashing.
I just noticed wget
are wrong in crystal branch, i would try with this ones instead:
wget https://raw.githubusercontent.com/AcutronicRobotics/MARA/crystal/mara-ros2.repos
wget https://raw.githubusercontent.com/AcutronicRobotics/gym-gazebo2/crystal/provision/additional-repos.repos
Hi @YueErro ,
I tried these wget
:
wget https://raw.githubusercontent.com/AcutronicRobotics/MARA/crystal/mara-ros2.repos
wget https://raw.githubusercontent.com/AcutronicRobotics/gym-gazebo2/crystal/provision/additional-repos.repos
but when compiling the workspace I get the following:
when it is supposed to be:
35 packages finished [12min 26s]
4 packages had stderr output: cv_bridge orocos_kdl python_orocos_kdl
robotiq_gripper_gazebo_plugins
Eventually, when I run an example:
@rkojcev @YueErro I managed to fix the above error. However I did notice these things:
/home/carlos/ros2_mara_ws/install/lib/python3.6/site-packages:/home/carlos/ros2_mara_ws/install/lib/python3.7/site-packages:/opt/ros/crystal/lib/python3.6/site-packages:/home/carlos/ros2_mara_ws/install/lib/python3/dist-packages
.~/gym-gazebo2/provision/mara_setup.sh
they are doing this: export PYTHONPATH=$PYTHONPATH:~/ros2_mara_ws/install/lib/python3/dist-packages
~ /ros2_mara_ws/install/lib/
, but there is no /python3/dist-packages
.Might this be something?
Hi @camontblanc ,
When you execute wget https://raw.githubusercontent.com/AcutronicRobotics/MARA/crystal/mara-ros2.repos
you are getting MARA's master branch
, not crystal
(check the content of the file). For now, go to _ros2_maraws/src/MARA and checkout to crystal release (its not a branch, yet). Then, recompile.
We will fix and test this today and let you know when the update is completed.
@camontblanc we are doing major refurbish and upgrade to all of our public repos these days in order to comply with different ros2 releases. Once we are done we will let you know and hopefully we will resolve all these inconsistencies trough out our repos.
Created crystal
branches for every gym-gazebo2 related repository. Go to the crystal
branch of ros2learn or gym-gazebo2, depending what you want to install, and follow the distribution specific instructions available in the README.
@camontblanc can you try now and see if everything is ok with the crystal branch of the repositories?
@nzlz @rkojcev First of all, thank you very much for your help. Right now, I'm following these instructions: crystal branch. I'll let you know as soon as I'm finished.
@rkojcev @nzlz This is what I get.
After compiling the ~/ros2_mara_ws
workspace and doing the provisioning step, when I run the /.bashrc
file:
not found: "/home/carlos/ros2_mara_ws/install/share/orocos_kdl/local_setup.sh"
not found: "/home/carlos/ros2_mara_ws/install/share/orocos_kdl/local_setup.bash"
I tried to make gym.make('MARA-v0')
but I still get the error ModuleNotFoundError: No module named 'rclpy._rclpy'.
Regarding n1, you probably forgot to execute the line after the workspace is compiled, double check instructions please. That will get remove these informative errors.
Regarding n2, can you reinstall ros-crystal-desktop? That will give you ros-crystal-rclpy, which you will be able to use when sourcing /opt/ros/crystal/setup.bash via provisioning script.
(sorry for the lack the format, talking from the phone)
@nzlz
touch ~/ros2_mara_ws/install/share/orocos_kdl/local_setup.sh ~/ros2_mara_ws/install/share/orocos_kdl/local_setup.bash
.cd ~/gym-gazebo2/examples/MARA
-> python3 gg_random.py -g
but I get
@nzlz @rkojcev
Hi! I deleted the ~/ros2_mara_ws
and ~/gym_gazebo2
folders from my computer did everything all over again. The workspace compiled successfully and I did the provisioning step. However, the same error still appears (ModuleNotFoundError: No module named 'rclpy._rclpy'
). As suggested by @nzlz, I reinstalled ros-crystal-desktop via Debian Packages. I really don't know what else to do given that I've repeated the steps in the INSTALL.md in Crystal Branch many times.
Thanks.
This is a strange issue we have never seen before and not gym-gazebo2 related, so we cannot help much. You could:
@nzlz You were absolutely right! The problem was with anaconda. I removed it and installed everything all over again and it worked neatly.
Thank you everyone for your kind help!
Environment/Algorithm I was trying the "python3 gg_random.py -g" example. Actually, whenever I try to build any MARA environment I keep having the same error.
Describe the bug ModuleNotFoundError: No module named 'rclpy._rclpy'.
Screenshots
Additional context I installed ROS2 Crystal and I have tried almost everything: uninstalling ROS2 and installing it again, same for gym_gazebo2.