[ros2-master] Fix build for last nav2 main branch#274
[ros2-master] Fix build for last nav2 main branch#274SteveMacenski merged 4 commits intorst-tu-dortmund:ros2-masterfrom
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.
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.
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.
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
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.
setSpeedLimitstill need to be properly implemented but was added for build to complete.Do we still need to pass
nav2_util::LifecycleNode::SharedPtr nodeto 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-masterbranch 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-develPRs, any plans to port them ?