Skip to content

Commit

Permalink
add remote mode initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
SoshiroMaruoka committed Aug 15, 2024
1 parent 1fedeca commit 720ec1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/config/RosParams.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#define ROS_PARAMS_H

#define CMD_VEL_TOPIC "/naviton/mobile_base_controller/cmd_vel"
#define REMOTE_VEL_TOPIC "/naviton/remote_controller/remote_vel"
#define REMOTE_CMD_TOPIC "/naviton/remote_controller/remote_cmd"
#define REMOTE_VEL_TOPIC "/mqtt/remote_controller/remote_vel"
#define REMOTE_CMD_TOPIC "/mqtt/remote_switch/remote_cmd"

#define STATE_TOPIC "/naviton/firmware/teensy/teensy_data"

Expand Down
2 changes: 2 additions & 0 deletions src/NavitonROS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ void NavitonROS::Init(ros::NodeHandle& nh)

pinMode(AUTO_SWITCH_PIN, INPUT_PULLUP);

_remote_cmd.data = 0;

nh.subscribe(_cmd_vel_sub);
}

Expand Down

0 comments on commit 720ec1b

Please sign in to comment.