Skip to content
Snippets Groups Projects
Unverified Commit eda2e64f authored by Carl Delsey's avatar Carl Delsey Committed by GitHub
Browse files

Fixing dwb package linter failures (#407)

parent b93b3dd1
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ before_install:
script:
- docker run --name nav2_bash --rm -d -i -t nav2:latest bash -l
- docker exec nav2_bash bash -c '. /ros2_ws/navigation2_ws/install/setup.bash &&
colcon test --packages-skip dwb_controller dwb_core nav2_amcl nav2_costmap_2d
colcon test --packages-skip dwb_controller nav2_costmap_2d
nav2_dynamic_params nav2_map_server nav2_navfn_planner nav2_robot nav2_system_tests
nav2_tasks'
- docker exec nav2_bash bash -c "colcon test-result --verbose"
......@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef nav2_dwb_controller__DWB_CONTROLLER_HPP_
#define nav2_dwb_controller__DWB_CONTROLLER_HPP_
#ifndef DWB_CONTROLLER__DWB_CONTROLLER_HPP_
#define DWB_CONTROLLER__DWB_CONTROLLER_HPP_
#include <memory>
#include <string>
......@@ -29,7 +29,7 @@ namespace nav2_dwb_controller
class DwbController : public rclcpp::Node
{
public:
DwbController(rclcpp::executor::Executor & executor);
explicit DwbController(rclcpp::executor::Executor & executor);
~DwbController();
nav2_tasks::TaskStatus followPath(const nav2_tasks::FollowPathCommand::SharedPtr path);
......@@ -51,4 +51,4 @@ protected:
} // namespace nav2_dwb_controller
#endif // nav2_dwb_controller__DWB_CONTROLLER_HPP_
#endif // DWB_CONTROLLER__DWB_CONTROLLER_HPP_
......@@ -25,7 +25,7 @@ using nav2_tasks::TaskStatus;
using dwb_core::DWBLocalPlanner;
using dwb_core::CostmapROSPtr;
#define NO_OP_DELETER [](auto){}
#define NO_OP_DELETER [] (auto) {}
namespace nav2_dwb_controller
{
......
......@@ -89,7 +89,10 @@ public:
* @param parent_namespace The namespace of the planner
* @param costmap_ros Pointer to the costmap
*/
void initialize(const std::shared_ptr<rclcpp::Node> & nh, std::string & name, CostmapROSPtr costmap_ros)
void initialize(
const std::shared_ptr<rclcpp::Node> & nh,
std::string & name,
CostmapROSPtr costmap_ros)
{
name_ = name;
costmap_ros_ = costmap_ros;
......
......@@ -4,9 +4,8 @@
<name>dwb_core</name>
<version>0.1.1</version>
<description>TODO</description>
<license>Apache License 2.0</license>
<license>BSD</license>
<maintainer email="carl.r.delsey@intel.com">Carl Delsey</maintainer>
<license>BSD</license>
<buildtool_depend>ament_cmake</buildtool_depend>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment