Skip to content

Commit

Permalink
Set twist_marker/use_stamped to default true, to match twist_mux (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
TWALL9 authored Jan 3, 2025
1 parent 20e8f21 commit 3037d5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/twist_marker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ class TwistMarkerPublisher : public rclcpp::Node
{
std::string frame_id;
double scale;
bool use_stamped;
bool use_stamped = true;
double z;

this->declare_parameter("frame_id", "base_footprint");
this->declare_parameter("scale", 1.0);
this->declare_parameter("use_stamped", false);
this->declare_parameter("use_stamped", true);
this->declare_parameter("vertical_position", 2.0);

this->get_parameter<std::string>("frame_id", frame_id);
Expand Down
4 changes: 3 additions & 1 deletion src/twist_mux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ TwistMux::TwistMux()
void TwistMux::init()
{
// Get use stamped parameter
bool use_stamped;
bool use_stamped = true;
this->declare_parameter("use_stamped", use_stamped);

auto nh = std::shared_ptr<rclcpp::Node>(this, [](rclcpp::Node *) {});
fetch_param(nh, "use_stamped", use_stamped);

Expand Down

0 comments on commit 3037d5e

Please sign in to comment.