Skip to content

Commit

Permalink
Fix segfault of example_gripper
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich authored and root committed Aug 24, 2024
1 parent 569d554 commit 2460b8d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gz_ros2_control_demos/examples/example_gripper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,11 @@

#include "std_msgs/msg/float64_multi_array.hpp"

std::shared_ptr<rclcpp::Node> node;

int main(int argc, char * argv[])
{
rclcpp::init(argc, argv);

node = std::make_shared<rclcpp::Node>("gripper_test_node");
std::shared_ptr<rclcpp::Node> node = std::make_shared<rclcpp::Node>("gripper_test_node");

auto publisher = node->create_publisher<std_msgs::msg::Float64MultiArray>(
"/gripper_controller/commands", 10);
Expand Down

0 comments on commit 2460b8d

Please sign in to comment.