Skip to content

Commit

Permalink
Removed unused variables in wheel ticks publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
adnan-saood committed Dec 12, 2023
1 parent 025d10d commit ef8387f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ class WheelsPublisher : public rclcpp::Node

// Encoder parameters
double encoder_resolution_;
double wheel_circumference_;

// Handling wheel ticks and wheel velocity messages
rclcpp::TimerBase::SharedPtr timer_;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ WheelsPublisher::WheelsPublisher(const rclcpp::NodeOptions & options)
encoder_resolution_ =
this->declare_parameter("encoder_resolution", 508.8);

// wheel radius in meters
const double wheel_radius =
this->declare_parameter("wheel_radius", 0.03575);
// Set wheel circumference from wheel radius parameter
wheel_circumference_ = 2 * M_PI * wheel_radius;

angular_vels_publisher_ = create_publisher<irobot_create_msgs::msg::WheelVels>(
velocity_topic, rclcpp::SystemDefaultsQoS());
RCLCPP_INFO_STREAM(get_logger(), "Advertised topic: " << velocity_topic);
Expand Down

0 comments on commit ef8387f

Please sign in to comment.