File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -108,12 +108,12 @@ class TwistMarkerPublisher : public rclcpp::Node
108108 {
109109 std::string frame_id;
110110 double scale;
111- bool use_stamped;
111+ bool use_stamped = true ;
112112 double z;
113113
114114 this ->declare_parameter (" frame_id" , " base_footprint" );
115115 this ->declare_parameter (" scale" , 1.0 );
116- this ->declare_parameter (" use_stamped" , false );
116+ this ->declare_parameter (" use_stamped" , true );
117117 this ->declare_parameter (" vertical_position" , 2.0 );
118118
119119 this ->get_parameter <std::string>(" frame_id" , frame_id);
Original file line number Diff line number Diff line change @@ -78,7 +78,9 @@ TwistMux::TwistMux()
7878void TwistMux::init ()
7979{
8080 // Get use stamped parameter
81- bool use_stamped;
81+ bool use_stamped = true ;
82+ this ->declare_parameter (" use_stamped" , use_stamped);
83+
8284 auto nh = std::shared_ptr<rclcpp::Node>(this , [](rclcpp::Node *) {});
8385 fetch_param (nh, " use_stamped" , use_stamped);
8486
You can’t perform that action at this time.
0 commit comments