Skip to content

Commit

Permalink
Add copyright headers and motion_planner namespace
Browse files Browse the repository at this point in the history
Signed-off-by: methylDragon <[email protected]>
  • Loading branch information
methylDragon committed Oct 17, 2023
1 parent 6a7a3d9 commit 49edb37
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nexus_motion_planner/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ int main(int argc, char** argv)
setvbuf(stdout, NULL, _IONBF, BUFSIZ);

rclcpp::init(argc, argv);
auto node = std::make_shared<MotionPlannerServer>();
auto node = std::make_shared<nexus::motion_planner::MotionPlannerServer>();
rclcpp::spin(node->get_node_base_interface());
rclcpp::shutdown();
return 0;
Expand Down
14 changes: 14 additions & 0 deletions nexus_motion_planner/src/motion_plan_cache.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2022 Johnson & Johnson
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include <memory>
#include <vector>

Expand Down
14 changes: 14 additions & 0 deletions nexus_motion_planner/src/motion_plan_cache.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2022 Johnson & Johnson
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef SRC__MOTION_PLAN_CACHE_HPP
#define SRC__MOTION_PLAN_CACHE_HPP

Expand Down
6 changes: 6 additions & 0 deletions nexus_motion_planner/src/motion_planner_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

#include "motion_planner_server.hpp"

namespace nexus {
namespace motion_planner {

//==============================================================================
MotionPlannerServer::MotionPlannerServer(const rclcpp::NodeOptions& options)
: rclcpp_lifecycle::LifecycleNode("motion_planner_server", options)
Expand Down Expand Up @@ -724,3 +727,6 @@ void MotionPlannerServer::plan_with_move_group(
}
return;
}

} // namespace planning_interface
} // namespace moveit
6 changes: 6 additions & 0 deletions nexus_motion_planner/src/motion_planner_server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
// NEXUS motion plan cache
#include "motion_plan_cache.hpp"

namespace nexus {
namespace motion_planner {

//==============================================================================
class MotionPlannerServer : public rclcpp_lifecycle::LifecycleNode
{
Expand Down Expand Up @@ -122,4 +125,7 @@ class MotionPlannerServer : public rclcpp_lifecycle::LifecycleNode
Response res);
}; // class MotionPlannerServer

} // namespace planning_interface
} // namespace moveit

#endif // SRC__MOTION_PLANNER_SERVER_HPP

0 comments on commit 49edb37

Please sign in to comment.