Closed jetdillo closed 2 years ago
This should be resolved by installing jupyterlab-ros
in your environment
conda install jupyterlab-ros -c robostack
I need to add this detail to the documentation, but let me know if that still doesn't work.
Cool. Thanks. I'll try that. I figured it had to be something like that because the Niryo model mostly loads and the Tenacity Rover URDF partially loads as well, but can't find all the meshes.
I'll let you know what happens.
I have a new, fresh conda environment I'm running jupyterlab-ros in and still seeing these errors. It looks like the Jupyter server is pre-pending some sort of path to the request:
[W 2022-07-10 16:16:00.966 ServerApp] 404 GET /ros/pkgs/urdf_tutorial/meshes/l_finger.dae (127.0.0.1) 1.33ms referer=http://localhost:8888/lab/tree/jupyterlab-urdf/examples/niryo.urdf
Because that file exists in the robostack repo:
(ros_env):~/miniconda3/envs/ros_env$ find . -name "l_finger.dae"
./pkgs/urdf_tutorial/meshes/l_finger.dae
./pkgs/ros-noetic-urdf-tutorial-0.5.0-py39h6fdeb60_13/share/urdf_tutorial/meshes/l_finger.dae
./share/urdf_tutorial/meshes/l_finger.dae
(ros_env):~/miniconda3/envs/ros_env
I tried setting the ROS_PACKAGE_PATH to include the urdf_tutorial
package, but that didn't help.
(The Foxglove-Studio app also has a bug with its ROS_PACKAGE_PATH expansion when trying to load URDFs)
I'm not a total expert with Jupyter, so it's possible I'm missing something fundamental here.
This sounds more like a ROS configuration issue than a problem with the extension itself to be honest. These are the steps I would follow to set it up, could you verify this is what you did as well?
niryo.urdf
conda create -n ros_env jupyterlab jupyterlab-ros jupyterlab-urdf ros-noetic-urdf-tutorial -c conda-forge -c robostack
conda activate ros_env
echo $ROS_PACKAGE_PATH
it should return something like
~/miniconda3/envs/ros_env/share
roscore
in that environmenturdf_tutorial
is in the ROS path with roscd urdf_tutorial
for examplejupyter lab
niryo.urdf
should displayHope this helps!
I had a chance to get back to this and re-install from scratch and got it working. The key steps I did in addition to the above was to
jupyter lab
and click on the niryo.urdf or burger.urdf inside examples. $ROS_ROOT
set up by setup.bash
. It's not a private Jupyter variable. If it's not set, even if everything inside the robostackenv seem to work from a shell command-line, This might be obvious to some, but not being overly familiar with jupyter, it took a bit for me to figure out. Typically, for a binary-only install in a native ROS environment, you can launch nodes without need to setup and build a catkin env.
I'm seeing lots of errors when trying to load the example URDFs: