Closed ShaoshuSu closed 3 months ago
I think I finally fully solved the environment problem for run ./run_sim.sh
I would suggest In first terminal does not involve any conda environment and build the workspace
source /opt/ros/humble/setup.bash
cd IsaacSim-ros_workspaces/humble_ws
rosdep install --from-paths src --ignore-src -r -y
rm -rf build
colcon build
cd ../..
cd go2_omniverse_ws
rosdep install --from-paths src --ignore-src -r -y
rm -rf build
colcon build
cd ..
In another new terminal activate your isaaclab
environment and source setup.bash
conda activate isaaclab
source /opt/ros/humble/setup.bash
cd IsaacSim-ros_workspaces/humble_ws
source install/setup.bash
cd ../..
cd go2_omniverse_ws
source install/setup.bash
cd ..
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6
Then run the Python script
python main.py --robot_amount 1 --robot go2
This should help to solve the whole branch of the environmental problem including
ModuleNotFoundError: No module named 'em' ModuleNotFoundError: No module named 'catkin_pkg'
Just as a comment. I had the same ModuleNotFoundError: No module named 'catkin_pkg'
error when I was updating the repo to the v0.2.0 release. For me, just adding the rm -rf build
command before colcon build
in the run_sim.sh file fixed the issue.
Just in case, if anyone is facing the same 'catkin_pkg' issue when run
./run_sim.sh
in stepcolcon build
, I can share some insight about how to solve it.As we need to use the python under
/usr/bin/python3
to build the environment instead of conda environment, there are a few things you need to make sure:No module named 'ament_package'
issue. You can disable that by commenting conda related content in your~/.bashrc
/usr/bin/python3
printenv | grep PYTHONPATH
to make sure your python env does not involve any conda, and it should looks like the followingPYTHONPATH=/opt/ros/humble/lib/python3.10/site-packages:/opt/ros/humble/local/lib/python3.10/dist-packages
pip install catkin_pkg
to install catkin_pkg in python base env. I usepip uninstall catkin_pkg
to uninstall all catkin_pkg in all other conda env as well.rm -rf build
to remove the old buildHope these help.