Conversation
rclpy/src/rclpy/init.cpp
Outdated
rclpy/src/rclpy/init.cpp
Outdated
| } | ||
| } | ||
|
|
||
| rcl_init_options_t rcl_options_; |
rclpy/src/rclpy/init.cpp
Outdated
| rcl_allocator_t allocator = rcl_get_default_allocator(); | ||
| InitOptions init_options(allocator); |
There was a problem hiding this comment.
@sloretz nit:
| rcl_allocator_t allocator = rcl_get_default_allocator(); | |
| InitOptions init_options(allocator); | |
| InitOptions init_options(rcl_get_default_allocator()); |
rclpy/src/rclpy/init.cpp
Outdated
|
|
||
| if (unparsed_ros_args_count < 0) { | ||
| throw std::runtime_error("failed to count unparsed arguments"); | ||
| } else if (0 == unparsed_ros_args_count) { |
66a7131 to
3dfce00
Compare
| private: | ||
| using std::runtime_error::runtime_error; | ||
|
|
||
| friend void throw_if_unparsed_ros_args(py::list, const rcl_arguments_t &); |
There was a problem hiding this comment.
IIUC private with using std::runtime_error::runtime_error forces one to use throw_if_unused_ros_args() so the exception text is always formatted the same. The access specifier has no effect on the friend declaration.
There was a problem hiding this comment.
I ended up removing the friendship and pybind11 use from rclpy_common (with Windows Debug compatibility in mind) in d224f19
|
MacOS seems to be having issues with some tests. |
|
CI OSX to see if test failures are fixed by d224f19 |
|
Ah, I'm more confident that 021e795 will fix the OSX test failure. CI (build: |
|
Windows debug again with 3df8fbc |
|
Windows debug warning should be fixed by #731 |
|
|
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
|
Rebased to fix conflicts - no changes |
| "failed to fini rcl_init_options_t in destructor:"); | ||
| RCUTILS_SAFE_FWRITE_TO_STDERR(rcl_get_error_string().str); | ||
| RCUTILS_SAFE_FWRITE_TO_STDERR("\n"); | ||
| rcl_reset_error(); |
There was a problem hiding this comment.
@sloretz meta, nothing to do here: one cool alternative to printing to stderr I saw in the code base is to use Python warnings. pybind11 doesn't provide a nice wrapper though.
Part of #665