-
Notifications
You must be signed in to change notification settings - Fork 24
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
Integrate the frame_prefix argument and make robot_name optional (related to https://github.com/bdaiinstitute/spot_ros2/pull/506). #157
Conversation
Pull Request Test Coverage Report for Build 13461765204Details
💛 - Coveralls |
…e as optional to actually respect the specified usage. Signed-off-by: Imaniac230 <[email protected]>
de81e6e
to
15fd7bd
Compare
Signed-off-by: Imaniac230 <[email protected]>
spot_wrapper/wrapper.py
Outdated
logger: logging.Logger, | ||
robot_name: typing.Optional[str] = None, |
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.
I'm good with adding the frame prefix topic, but I'm worried about making the robot name optional as it changes the order of the arguments, and there's some code we have internally that would break with this. How necessary is this for the spot_ros2 PR?
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.
Shouldn't really be necessary at all. It was more of a unification thing, since I saw that it was already being handled and passed in as an optional:
spot_wrapper/spot_wrapper/wrapper.py
Lines 423 to 425 in d96cfb8
self._frame_prefix = "" | |
if robot_name is not None: | |
self._frame_prefix = robot_name + "/" |
Only the prefix should be an actual optional, because an empty string prefix is still considered a valid option.
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.
Reverted the changes made to robot name in 64b9497.
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.
ah yeah sorry I mispoke, the default value was the thing that would mess up the order of the arguments, not the fact that it was optional. it probably should be changed to an optional without a default value but it's not necessary to fix in this pr :)
Signed-off-by: Imaniac230 <[email protected]>
This PR is related to the changes proposed in bdaiinstitute/spot_ros2#506.
frame_prefix
parameter is exposed to the wrapper.robot_name
parameter is now actually optional.