-
Notifications
You must be signed in to change notification settings - Fork 37
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
[plugins] Unclear how to succinctly incorporate plotjugger data #333
Comments
Observations so far :
The REP that allows those : https://ros.org/reps/rep-0149.html#id20 Removing those fixed the problem for me. I'll look at fixing the parsing logic : https://github.com/RobotLocomotion/drake-ros/pull/336/files
|
and for
As per the rules here that behavior seems consistent to me : drake-ros/bazel_ros2_rules/ros2/resources/ros2bzl/templates.py Lines 37 to 48 in 4c17af0
The
, and not to _share targets.
|
Q1Hm... Why does the conditional parsing cause the Ideally, we should fix the root issue rather than eliminating the condition for this and other packages (as you indicated in Q2Sorry, my question was less "why am I using Python stuff", but rather "what files were in this target that was not already present in the |
For Q1 :
tree.find() does not care about the condition , and just returns the first entry that it can find. In the case of plotjuggler_ros, that is catkin , and since that does not contain the keyword cmake , the cc target is never generated : drake-ros/bazel_ros2_rules/ros2/generate_build_file.py Lines 121 to 126 in 4c17af0
The substitution is handled here in ROS : https://github.com/ros-infrastructure/catkin_pkg/blob/74d072fb2e4b8aa4637aec68542a8cddd1775bde/src/catkin_pkg/condition.py#L26-L35 |
If the version constraints are spelled consistently, I think we should update our parser to check if the condition implies ROS 2, e.g.,
If there is super complex options, then we should just vendor in that parsing logic you quoted. |
I am trying to use plotjugger in our internal codebase (Anzu). I envisioned doing something like this in a
BUILD.bazel
:However, to make this work, I had to do hack our our
ros2/repository.bzl
(click to expand)
Questions
plotjuggler_ros_cc
library? I would've thought this would be caught by scanning.plotjuggler_ros_transitive_py
? I would've thoughtplotjuggler_ros_share
should have covered it.The text was updated successfully, but these errors were encountered: