Skip to content

Commit

Permalink
feat: replace gear cmd type
Browse files Browse the repository at this point in the history
Signed-off-by: TetsuKawa <[email protected]>
  • Loading branch information
TetsuKawa committed Jan 16, 2025
1 parent 4fe5a9f commit d1bec15
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dummy/dummy_gear_cmd_publisher/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<build_depend>autoware_cmake</build_depend>

<!-- depend -->
<depend>autoware_auto_vehicle_msgs</depend>
<depend>autoware_vehicle_msgs</depend>
<depend>rclcpp</depend>
<depend>rclcpp_components</depend>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ DummyGearCmdPublisher::DummyGearCmdPublisher(const rclcpp::NodeOptions & node_op

// Publisher
pub_gear_cmd_ =
create_publisher<autoware_auto_vehicle_msgs::msg::GearCommand>("~/output/gear_cmd", 10);
create_publisher<autoware_vehicle_msgs::msg::GearCommand>("~/output/gear_cmd", 10);

// Service

Expand All @@ -44,9 +44,9 @@ DummyGearCmdPublisher::DummyGearCmdPublisher(const rclcpp::NodeOptions & node_op

void DummyGearCmdPublisher::onTimer()
{
autoware_auto_vehicle_msgs::msg::GearCommand msg;
autoware_vehicle_msgs::msg::GearCommand msg;
msg.stamp = this->now();
msg.command = autoware_auto_vehicle_msgs::msg::GearCommand::DRIVE;
msg.command = autoware_vehicle_msgs::msg::GearCommand::DRIVE;

pub_gear_cmd_->publish(msg);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// include
#include <rclcpp/rclcpp.hpp>

#include <autoware_auto_vehicle_msgs/msg/gear_command.hpp>
#include <autoware_vehicle_msgs/msg/gear_command.hpp>

namespace dummy_gear_cmd_publisher
{
Expand All @@ -35,7 +35,7 @@ class DummyGearCmdPublisher : public rclcpp::Node
// Subscriber

// Publisher
rclcpp::Publisher<autoware_auto_vehicle_msgs::msg::GearCommand>::SharedPtr pub_gear_cmd_;
rclcpp::Publisher<autoware_vehicle_msgs::msg::GearCommand>::SharedPtr pub_gear_cmd_;

// Service

Expand Down

0 comments on commit d1bec15

Please sign in to comment.