Skip to content

Initialize inflate_cone_ variable.#1988

Merged
SteveMacenski merged 3 commits intoros-navigation:mainfrom
wilcobonestroo:initialize-variables-range-test
Sep 15, 2020
Merged

Initialize inflate_cone_ variable.#1988
SteveMacenski merged 3 commits intoros-navigation:mainfrom
wilcobonestroo:initialize-variables-range-test

Conversation

@wilcobonestroo
Copy link
Copy Markdown
Contributor

Basic Info

Info Please fill out this column
Ticket(s) this addresses #1987
Primary OS tested on Ubuntu 20.04 in VirtualBox on Windows 10
Robotic platform tested on n.a.

Description of contribution in a few bullet points

Valgrind reported uninitialized variables in range_test. After this initialization valgrind does not report errors anymore.

Description of documentation updates required from your changes

No documentation changes required.


Future work that may be required in bullet points

The unit and integration tests are unstable. We still have to find what the problem is.

Copy link
Copy Markdown
Member

@SteveMacenski SteveMacenski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/ros-planning/navigation2/blob/4e185b948f48b6727285cef0cc34d0931486a43a/nav2_costmap_2d/plugins/range_sensor_layer.cpp#L81

I think what you actually want to do is to make the get match the declare so that parameter is used. Looks like a porting copy-pasta error

@SteveMacenski SteveMacenski linked an issue Sep 15, 2020 that may be closed by this pull request
@codecov
Copy link
Copy Markdown

codecov bot commented Sep 15, 2020

Codecov Report

Merging #1988 into main will decrease coverage by 0.08%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1988      +/-   ##
==========================================
- Coverage   79.28%   79.20%   -0.09%     
==========================================
  Files         221      221              
  Lines       10621    10621              
==========================================
- Hits         8421     8412       -9     
- Misses       2200     2209       +9     
Flag Coverage Δ
#project 79.20% <100.00%> (-0.09%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
nav2_costmap_2d/plugins/range_sensor_layer.cpp 76.09% <100.00%> (-2.00%) ⬇️
..._2d/include/nav2_costmap_2d/range_sensor_layer.hpp 50.00% <0.00%> (-50.00%) ⬇️
nav2_navfn_planner/src/navfn_planner.cpp 87.27% <0.00%> (-6.07%) ⬇️
nav2_recoveries/plugins/spin.cpp 88.00% <0.00%> (-5.34%) ⬇️
...lifecycle_manager/src/lifecycle_manager_client.cpp 87.80% <0.00%> (-2.44%) ⬇️
nav2_amcl/src/amcl_node.cpp 84.39% <0.00%> (-0.16%) ⬇️
...av2_dwb_controller/dwb_critics/src/oscillation.cpp 87.95% <0.00%> (+19.27%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 79963a4...baf47a5. Read the comment docs.

@SteveMacenski SteveMacenski merged commit b8e9fba into ros-navigation:main Sep 15, 2020
@wilcobonestroo wilcobonestroo deleted the initialize-variables-range-test branch September 15, 2020 18:05
SteveMacenski pushed a commit that referenced this pull request Nov 4, 2020
* Initialize inflate_cone_ variable.

* initialize inflate_cone_ based on parameter.

* Increase the sleep time in the tests makes the costmap test always succeed on my machine.
SteveMacenski added a commit that referenced this pull request Nov 4, 2020
* initialize variables in inflation layer (#1970)

* Fix zero waypoints crash (#1978)

* return if the number of waypoints is zero.

* terminate the action.

* Succeed action instead of terminating.

* Add IsBatteryLow condition node (#1974)

* Add IsBatteryLow condition node

* Update default battery topic and switch to battery %

* Fix test

* Switch to sensor_msgs/BatteryState

* Add option to use voltage by default or switch to percentage

* Add sensor_msgs dependency in package.xml

* Make percentage default over voltage

* Update parameter list

* Initialize inflate_cone_ variable. (#1988)

* Initialize inflate_cone_ variable.

* initialize inflate_cone_ based on parameter.

* Increase the sleep time in the tests makes the costmap test always succeed on my machine.

* Add timeouts to all spin_until_future_complete calls (#1998)

* Add timeouts to all spin_until_future_complete calls

Signed-off-by: Sarthak Mittal <sarthakmittal2608@gmail.com>

* Update default timeout value

Signed-off-by: Sarthak Mittal <sarthakmittal2608@gmail.com>

* Controllers should not be influenced by time jumps or slew (#2012)

* Controllers should not be influenced by time jumps

Therefore use rclcpp::GenericRate<std::chrono::steady_clock> instead of
rclcpp::Rate

Signed-off-by: Martijn Buijs <martijn.buijs@gmail.com>

* Change to using `rclcpp::WallRate` for better readability

Signed-off-by: Martijn Buijs <martijn.buijs@gmail.com>

* Fix max path cycles for case where map has larger Y dimension than X dimension (#2017)

* Fix max path cycles for case where map has larger Y dimension than X dimension

* Improve readability

* fix ament_cpplint and ament_uncrustify issues

* fix minor cherry pick conflict mistake

* bump version to 0.4.4

Co-authored-by: Michael Ferguson <mfergs7@gmail.com>
Co-authored-by: Wilco Bonestroo <w.j.bonestroo@saxion.nl>
Co-authored-by: Sarthak Mittal <sarthakmittal2608@gmail.com>
Co-authored-by: Martijn Buijs <Martijn.buijs@gmail.com>
Co-authored-by: justinIRBT <69175069+justinIRBT@users.noreply.github.com>
ruffsl pushed a commit to ruffsl/navigation2 that referenced this pull request Jul 2, 2021
* Initialize inflate_cone_ variable.

* initialize inflate_cone_ based on parameter.

* Increase the sleep time in the tests makes the costmap test always succeed on my machine.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Valgrind reports uninitialized variables in range test

2 participants