Skip to content

Commit

Permalink
[Ninja][Navigation][WIP] Add some variables to treat navigation mode …
Browse files Browse the repository at this point in the history
…in assembled state.
  • Loading branch information
sugihara-16 committed Dec 20, 2024
1 parent 6924593 commit bf59518
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions robots/ninja/include/ninja/ninja_navigation.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ namespace aerial_robot_navigation
map<string, ros::Subscriber> module_joints_subs_;

tf::Vector3 target_vel_candidate_;
double asm_vel_nav_threshold_;
int asm_xy_control_mode_;
int asm_vel_based_waypoint_;

std::map<int, ModuleData> assembled_modules_data_;
std::vector<double> joint_pos_errs_;
Expand Down
2 changes: 1 addition & 1 deletion robots/ninja/src/ninja_navigation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ void NinjaNavigator::assemblyNavCallback(const aerial_robot_msgs::FlightNavConst
tf::Vector3 target_delta = getTargetPosCand() - target_cog_pos;
target_delta.setZ(0);

if(target_delta.length() > vel_nav_threshold_)
if(target_delta.length() > asm_vel_nav_threshold_)
{
ROS_WARN("start vel nav control for waypoint");
vel_based_waypoint_ = true;
Expand Down

0 comments on commit bf59518

Please sign in to comment.