Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBearing committed Feb 3, 2024
1 parent cd9bc37 commit a07670a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ using ChatgptService = chatgpt_ros_cpp_msgs::srv::ChatgptService;

class ChatGptServer : public rclcpp::Node
{
public:
public:
ChatGptServer() = delete;
explicit ChatGptServer(const rclcpp::NodeOptions &);
// ~ChatGptServer();

private:
private:
std::string api_key_;
rclcpp::Service<ChatgptService>::SharedPtr server_;

Expand Down
4 changes: 2 additions & 2 deletions chatgpt_ros_cpp_node/src/chatgpt_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace chatgpt_ros_cpp_node
{

ChatGptServer::ChatGptServer(const rclcpp::NodeOptions& options)
: Node("chat_gpt_server", options)
: Node("chat_gpt_server", options)
{
this->declare_parameter("api_key", "");
using std::placeholders::_1;
Expand All @@ -43,7 +43,7 @@ void ChatGptServer::request_chat(
const std::shared_ptr<ChatgptService::Response> response)
{
// set up content data
RCLCPP_INFO(this->get_logger(), "setup request data");
RCLCPP_INFO(this->get_logger(), "setup request data");

std::string query = request->question_text;
nlohmann::json request_json;
Expand Down

0 comments on commit a07670a

Please sign in to comment.