Skip to content

Commit

Permalink
updating coordinateNode to remove void msgs and add turning functiona…
Browse files Browse the repository at this point in the history
…lity - alex
  • Loading branch information
wang-edward committed May 10, 2024
1 parent 2713079 commit 345dd4c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,16 @@
<package format="3">
<name>uwrt_mars_rover_xbox_controller</name>
<version>0.0.0</version>
<description>ROS2 rover xbox joystick controller</description>
<description>
ROS2 rover xbox joystick controller
Creator: Nico
Modifiers: Edward, Soumya, Alex
Link to detailed description:
</description>
<maintainer email="npalmar@uwaterloo.ca">nico</maintainer>
<maintainer email="@uwaterloo.ca">edward</maintainer>
<maintainer email="@uwaterloo.ca">soumya</maintainer>
<maintainer email="aszabo@uwaterloo.ca">alex</maintainer>
<license>Apache License 2.0</license>

<buildtool_depend>ament_cmake</buildtool_depend>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CoordinateNode::CoordinateNode(const rclcpp::NodeOptions & options) : Node("coor

auto msg = std::make_unique<geometry_msgs::msg::Twist>();
msg->linear.x = (*msg_in).drivetrain_joy_x * vConstant;
msg->linear.y = (*msg_in).drivetrain_joy_y * vConstant;
msg->angular.z = (*msg_in).gimble_joy_x * vConstant;

pub_->publish(std::move(msg));
};
Expand Down

0 comments on commit 345dd4c

Please sign in to comment.