-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: apply snake_case to the function names #62
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,6 +43,7 @@ class CameraLidarNode : public rclcpp::Node | |
| */ | ||
| CameraLidarNode(const std::string & name, const rclcpp::NodeOptions & options); | ||
|
|
||
| protected: | ||
| /** | ||
| * @brief Connects the node to the pointcloud and image topics. | ||
| * | ||
|
|
@@ -51,11 +52,10 @@ class CameraLidarNode : public rclcpp::Node | |
| * @param image_callback Callback function for image messages. | ||
| * @param use_raw Whether to use raw image data. | ||
| */ | ||
| void onConnect( | ||
| void on_connect( | ||
|
||
| const PointCloudCallback & pointcloud_callback, const std::vector<std::string> & image_topics, | ||
| const ImageCallback & image_callback, bool use_raw); | ||
|
|
||
| protected: | ||
| rclcpp::TimerBase::SharedPtr connection_timer_; //!< Topic connection timer. | ||
|
|
||
| private: | ||
|
|
@@ -65,7 +65,7 @@ class CameraLidarNode : public rclcpp::Node | |
| * @param callback Callback function to be called when a new pointcloud is received. | ||
| * @return True if the connection was successful, false otherwise. | ||
| */ | ||
| bool onConnectLidar(const PointCloudCallback & pointcloud_callback); | ||
| bool on_connect_lidar(const PointCloudCallback & pointcloud_callback); | ||
|
|
||
| /** | ||
| * @brief Connect to a single image topic. | ||
|
|
@@ -76,7 +76,7 @@ class CameraLidarNode : public rclcpp::Node | |
| * @param use_raw Whether to use raw images or not. | ||
| * @return True if the connection was successful, false otherwise. | ||
| */ | ||
| bool onConnectForSingleCamera( | ||
| bool on_connect_for_single_camera( | ||
| size_t camera_id, const std::string & image_topic, const ImageCallback & image_callback, | ||
| bool use_raw); | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,17 +42,17 @@ class MultiCameraNode : public rclcpp::Node | |
| */ | ||
| MultiCameraNode(const std::string & name, const rclcpp::NodeOptions & options); | ||
|
|
||
| protected: | ||
|
ktro2828 marked this conversation as resolved.
|
||
| /** | ||
| * @brief Connect to multiple image topics. | ||
| * | ||
| * @param image_topics Vector of image topic names. | ||
| * @param callback Callback function to be called when a new image is received. | ||
| * @param use_raw Whether to use raw images or not. | ||
| */ | ||
| void onConnect( | ||
| void on_connect( | ||
|
||
| const std::vector<std::string> & image_topics, const Callback & callback, bool use_raw); | ||
|
|
||
| protected: | ||
| rclcpp::TimerBase::SharedPtr connection_timer_; //!< Topic connection timer. | ||
|
|
||
| private: | ||
|
|
@@ -65,7 +65,7 @@ class MultiCameraNode : public rclcpp::Node | |
| * @param use_raw Whether to use raw images or not. | ||
| * @return True if the connection was successful, false otherwise. | ||
| */ | ||
| bool onConnectForSingleCamera( | ||
| bool on_connect_for_single_camera( | ||
| size_t camera_id, const std::string & image_topic, const Callback & callback, bool use_raw); | ||
|
|
||
| std::vector<image_transport::Subscriber> subscriptions_; //!< Subscribers for each camera topic. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,15 +40,15 @@ class SingleCameraNode : public rclcpp::Node | |
| */ | ||
| SingleCameraNode(const std::string & name, const rclcpp::NodeOptions & options); | ||
|
|
||
|
ktro2828 marked this conversation as resolved.
|
||
| protected: | ||
| /** | ||
| * @brief Check node connection and start subscribing. | ||
| * | ||
| * @param callback Callback function. | ||
| * @param use_raw Indicates whether to use raw image. | ||
| */ | ||
| void onConnect(const Callback & callback, bool use_raw); | ||
| void on_connect(const Callback & callback, bool use_raw); | ||
|
||
|
|
||
| protected: | ||
| rclcpp::TimerBase::SharedPtr connection_timer_; //!< Topic connection timer. | ||
|
|
||
| private: | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.