Code Monkey home page Code Monkey logo

Comments (11)

richardrl avatar richardrl commented on July 2, 2024

Another example: how to launch RViz2 with a specific URDF?

from robostack.github.io.

traversaro avatar traversaro commented on July 2, 2024

Seems many things from standard ros do not transfer exactly, like where packages are stored

Can you be more specific? I am not sure how that is different, beside the difference of apt vs conda. Do you have an example of ROS official docs that should be changed for robostack?

from robostack.github.io.

traversaro avatar traversaro commented on July 2, 2024

Another example: how to launch RViz2 with a specific URDF?

In which sense this is different in robostack?

from robostack.github.io.

richardrl avatar richardrl commented on July 2, 2024

Where are packages installed? I am trying to follow this: https://wiki.ros.org/urdf/Tutorials/Building%20a%20Visual%20Robot%20Model%20with%20URDF%20from%20Scratch

And cannot get any ros2 launch urdf_tutorial to work in robostack

EDIT: I tried:

micromamba install ros-humble-urdf-tutorial -c conda-forge -c robostack-staging ros-humble-desktop
and after installation,
ros2 launch urdf_tutorial display.launch model:=urdf/01-myfirst.urdf file 'display.launch' was not found in the share directory of package 'urdf_tutorial' which is at '/samsung4tb/conda_envs/ros_env/share/urdf_tutorial'

from robostack.github.io.

richardrl avatar richardrl commented on July 2, 2024

I want to load the rviz with my urdf

from robostack.github.io.

richardrl avatar richardrl commented on July 2, 2024

Could you provide a line by line explanation of how to load the URDF into Rviz with Robostack?

from robostack.github.io.

traversaro avatar traversaro commented on July 2, 2024

That documentation is for ROS 1, you are using ROS 2. The correct docs to check are https://docs.ros.org/en/humble/Tutorials/Intermediate/URDF/Building-a-Visual-Robot-Model-with-URDF-from-Scratch.html . The location where the urdf-tutorial files are installed is $CONDA_PREFIX\share\urdf_tutorial, but you do not need to know that if you execute the command later in the tutorial. However, that seems to me a lack of the tutorial in https://docs.ros.org/en/humble/Tutorials/Intermediate/URDF/Building-a-Visual-Robot-Model-with-URDF-from-Scratch.html, as it should not assume that the user has the pwd in some binary directory, or it should explain the user how to reach it.

from robostack.github.io.

richardrl avatar richardrl commented on July 2, 2024

That documentation is for ROS 1, you are using ROS 2. The correct docs to check are https://docs.ros.org/en/humble/Tutorials/Intermediate/URDF/Building-a-Visual-Robot-Model-with-URDF-from-Scratch.html . The location where the urdf-tutorial files are installed is $CONDA_PREFIX\share\urdf_tutorial, but you do not need to know that if you execute the command later in the tutorial. However, that seems to me a lack of the tutorial in https://docs.ros.org/en/humble/Tutorials/Intermediate/URDF/Building-a-Visual-Robot-Model-with-URDF-from-Scratch.html, as it should not assume that the user has the pwd in some binary directory, or it should explain the user how to reach it.

Thanks for your response.

these were the steps I tried, without success and error at the end:
micromamba install ros-humble-urdf-tutorial -c conda-forge -c robostack-staging ros-humble-desktop
and after installation,
ros2 launch urdf_tutorial display.launch model:=urdf/01-myfirst.urdf file 'display.launch' was not found in the share directory of package 'urdf_tutorial' which is at '/samsung4tb/conda_envs/ros_env/share/urdf_tutorial'

Any idea whats happening?

from robostack.github.io.

richardrl avatar richardrl commented on July 2, 2024

I got it to work with this command: ros2 launch urdf_tutorial display.launch.py model:=urdf/01-myfirst.urdf

seems you need to append a .py to any launch files

from robostack.github.io.

richardrl avatar richardrl commented on July 2, 2024

An additional step:
I searched for package:// in my urdf and changed all the meshes to the directory that robostack is expecting. Now I can load my custom URDF and associated meshes

from robostack.github.io.

traversaro avatar traversaro commented on July 2, 2024

I got it to work with this command: ros2 launch urdf_tutorial display.launch.py model:=urdf/01-myfirst.urdf

seems you need to append a .py to any launch files

In which sense "add" ? That seems the command reported in https://docs.ros.org/en/humble/Tutorials/Intermediate/URDF/Building-a-Visual-Robot-Model-with-URDF-from-Scratch.html .

from robostack.github.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.