Skip to content

Commit 3037d5e

Browse files
authored
Set twist_marker/use_stamped to default true, to match twist_mux (#55)
1 parent 20e8f21 commit 3037d5e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/twist_marker.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

src/twist_mux.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ TwistMux::TwistMux()
7878
void 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

0 commit comments

Comments
 (0)