Convert last of pub/sub getters to pybind11#733
Conversation
Signed-off-by: Greg Balke <greg@openrobotics.org>
Signed-off-by: Greg Balke <greg@openrobotics.org>
Signed-off-by: Greg Balke <greg@openrobotics.org>
Signed-off-by: Greg Balke <greg@openrobotics.org>
Signed-off-by: Greg Balke <greg@openrobotics.org>
|
@ros-pull-request-builder retest this please |
rclpy/src/rclpy/graph.cpp
Outdated
| if (RCL_RET_UNSUPPORTED == ret) { | ||
| throw RCLError( | ||
| "Failed to get information by topic. " | ||
| "Function not supported by RMW_IMPLEMENTATION"); |
There was a problem hiding this comment.
@gbalke I think it'd be best not to change the exception type (used to be NotImplementedError). You may add a new exception and register a translator to PyExc_NotImplementedError, see https://pybind11.readthedocs.io/en/stable/advanced/exceptions.html#registering-custom-translators.
CC @sloretz for feedback.
|
Also, this boy needs a rebase. |
Signed-off-by: Greg Balke <greg@openrobotics.org>
Doesn't really matter as I'm going to squash and merge in the end? |
Signed-off-by: Greg Balke <greg@openrobotics.org>
hidmic
left a comment
There was a problem hiding this comment.
LGTM but for a few minor comments
| using RCLError::RCLError; | ||
| }; | ||
|
|
||
| class NotImplementedError : public RCLError |
There was a problem hiding this comment.
@gbalke hmm, does RCL_RET_UNSUPPORTED set an rcl error?
There was a problem hiding this comment.
I assumed it was in the same boat as NodeNameNonExistant https://github.com/ros2/rcl/blob/0ca8c6162136594e490ba69fbf288de1b5f7073d/rcl/src/rcl/common.c
Signed-off-by: Greg Balke <greg@openrobotics.org>
Signed-off-by: Greg Balke <greg@openrobotics.org>
Part of #665.
This handles: