-
Notifications
You must be signed in to change notification settings - Fork 13.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change how to get ros2 version #14063
Conversation
This does not solve the problem you have with using |
@TSC21 Thank you so much :-) Actually, for the test, I just install After your comment, I checked my system installed Now, I found |
Can we get to a conclusion here? |
ros2_distro = args.ros2_distro | ||
else: | ||
raise | ||
ros2_distro = os.environ.get('ROS_DISTRO') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add a check that makes sure that makes sure that the ROS_DISTRO that is set is not a ROS 1 distro? Can be done on the next line. Otherwise, the rest of the process will fail. Thanks.
Thank you for good comments. I update the code according to your comments. Thanks |
From a first look I think it can be improved, yes. Thanks |
Describe problem solved by this pull request
When I compile with rtps (ex. make px4_sitl_rtps), I found there is an error about ROS version like below.
In this case, I installed ros2 dashing by default method (ros-desktop)
Describe your solution
To check the ROS version in ROS2, ROS_DISTRO environment variable is used.
So, to solve it, I change how to check ros version. (rosversion -> ROS_DISTRO environment variable)