-
Notifications
You must be signed in to change notification settings - Fork 550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ros2-master] Fix build for last nav2 main branch #274
[ros2-master] Fix build for last nav2 main branch #274
Conversation
@doisyg this is on my radar right now preping for the galactic release, we should work on getting this merged in / let me take a look now that there's been a few more updates what else may be required |
Great! @SteveMacenski are you a maintener of TEB too ? |
I'm not, this is on my list to circle back to, but getting STVL and NPVL up to date with master is coming first before I will come back to this. Updates on those important noetic/melodic updates would be good. I'm not sure what the best course of action is there. I'm thinking you should submit those against foxy/ros2 first, then the API updates for |
Hi, I chatted with @croesmann and he’s given me write permissions to support the ROS2 branch! I’ll follow up here next week |
@doisyg if this builds against Nav2 master, we can merge this |
It does! |
cfg_->robot.base_max_vel_x_backwards = cfg_->robot.base_max_vel_x_backwards; | ||
cfg_->robot.base_max_vel_y = cfg_->robot.base_max_vel_y; | ||
cfg_->robot.base_max_vel_theta = cfg_->robot.base_max_vel_theta; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this supposed to be:
cfg_->robot.max_vel_x_backwards = cfg_->robot.base_max_vel_x_backwards * speed_limit / 100.0;
cfg_->robot.max_vel_y = cfg_->robot.base_max_vel_y * speed_limit / 100.0;
cfg_->robot.max_vel_theta = cfg_->robot.base_max_vel_theta * speed_limit / 100.0;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These lines are inside :
if (speed_limit == nav2_costmap_2d::NO_SPEED_LIMIT) {
so I believe this is the intended behavior
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I copied the wrong snippet, I meant that we should be setting max_vel_* and not base_max_vel_*
See our attempted fix https://github.com/logivations/teb_local_planner/pull/33/files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created PR #372
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch
Fix build for last nav2 main branch (rolling ?), basically an update of #233
Mimicking the style of https://github.com/ros-planning/navigation2/tree/main/nav2_dwb_controller/dwb_core.
setSpeedLimit
still need to be properly implemented but was added for build to complete.Do we still need to pass
nav2_util::LifecycleNode::SharedPtr node
to theinitialize(nav2_util::LifecycleNode::SharedPtr node)
function since we haverclcpp_lifecycle::LifecycleNode::WeakPtr nh_
as a member variable which is initialized byTebLocalPlannerROS::configure
? @SteveMacenski, you added the argument in #233, what do you think ?More generally, I see the
ros2-master
branch of this repo as the ros2 dev branch which should try to stay compatible with the nav2 main branch, am I right @amakarow ? Also it seems that this branch is late on manymelodic-devel
PRs, any plans to port them ?