ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

What is the purpose of ros2/variants?

asked 2023-06-08 18:49:12 -0600

stewpend0us gravatar image

https://github.com/ros2/variants

It's unclear to me how this is meant to be used. Should I clone it and run it somehow? Are they examples meant to be copy pasted and modified?

Ultimately I'm trying to get as lightweight as possible (ros-core) build from source.

Is this repo going to be helpful or just a distraction?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-06-10 07:03:14 -0600

130s gravatar image

updated 2023-06-10 20:30:03 -0600

It's explained well in docs.ros.org/How-To-Guides/Using-Variants.html. Because ROS as a framework provides a large number of packages, and also because ROS supports many usecases, categorizing packages per (very high level) usecase has turned out to be quite convenient (and it's not a new concept made in ROS btw).

Ultimately I'm trying to get as lightweight as possible (ros-core) build from source.

It's up to what you need, but there are many advantages in using pre-built software. An obvious benefit among those is that you spare time to build, and avoid potential issues you'd face while building by yourself.

Is this repo going to be helpful or just a distraction?

That repo is used to formally define the variants. A few consumers of it are:

edit flag offensive delete link more

Comments

so would I have a workspace with all my packages and add a 'variant' package which only builds a subset of them?a

stewpend0us gravatar image stewpend0us  ( 2023-06-10 13:46:50 -0600 )edit

Depends on what you need though, using variants is NOT mandatory (I rarely use it TBH just because I want my packages lean, and I'm comfortable in choosing only the packages I really need), it's for convenience I'd say. Also I'd avoid building packages that I don't need to build by myself.

130s gravatar image 130s  ( 2023-06-10 20:34:21 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2023-06-08 18:49:12 -0600

Seen: 176 times

Last updated: Jun 10 '23