-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixed namespaces and updated ros_component_description Signed-off-by: Jakub Delicat <[email protected]> * Changed GetDockPose approach Signed-off-by: Jakub Delicat <[email protected]> * Cleanup charger Signed-off-by: Jakub Delicat <[email protected]> * Added unit tests Signed-off-by: Jakub Delicat <[email protected]> * Update docs: Signed-off-by: Jakub Delicat <[email protected]> * Fix upside down Signed-off-by: Jakub Delicat <[email protected]> * Added updateAndPublishStagingPose method Signed-off-by: Jakub Delicat <[email protected]> * Added suggestins | added reading docking_server parameter is dock pose publisher Signed-off-by: Jakub Delicat <[email protected]> * Remove redundant tests Signed-off-by: Jakub Delicat <[email protected]> * Added aprilros launch to simulation Signed-off-by: Jakub Delicat <[email protected]> * update vsc and changed dock name Signed-off-by: Jakub Delicat <[email protected]> * Tested with nav2 in simulation | Added docking to multibple stations | Spawning multiple stations Signed-off-by: Jakub Delicat <[email protected]> * Fixed after merge Signed-off-by: Jakub Delicat <[email protected]> * described parameters | applied codeguides Signed-off-by: Jakub Delicat <[email protected]> * coderabbitai suggestions Signed-off-by: Jakub Delicat <[email protected]> * Review Signed-off-by: Jakub Delicat <[email protected]> * wibotic_connector_ros depends on hardware | fixed launch args Signed-off-by: Jakub Delicat <[email protected]> * wibotic_connector_ros depends on hardware | fixed launch args Signed-off-by: Jakub Delicat <[email protected]> * Added default values Signed-off-by: Jakub Delicat <[email protected]> * Update panther_manager/launch/manager.launch.py --------- Signed-off-by: Jakub Delicat <[email protected]> Co-authored-by: Rafal Gorecki <[email protected]>
- Loading branch information
1 parent
0327ac4
commit b9e11a5
Showing
19 changed files
with
468 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
/**: | ||
ros__parameters: | ||
image_transport: raw | ||
family: 36h11 | ||
size: 0.06 | ||
profile: false | ||
|
||
max_hamming: 0 | ||
detector: | ||
threads: 1 | ||
decimate: 2.0 | ||
blur: 0.0 | ||
refine: true | ||
sharpening: 0.25 | ||
debug: false | ||
|
||
tag: | ||
ids: [0, 1] | ||
frames: [main_apriltag_link, backup_apriltag_link] | ||
sizes: [0.06, 0.06] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
panther_docking/include/panther_docking/dock_pose_publisher_node.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// Copyright (c) 2024 Husarion Sp. z o.o. | ||
// | ||
// 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 PANTHER_DOCKING_DOCK_POSE_PUBLISHER_NODE_HPP_ | ||
#define PANTHER_DOCKING_DOCK_POSE_PUBLISHER_NODE_HPP_ | ||
|
||
#include <memory> | ||
#include <string> | ||
#include <vector> | ||
|
||
#include <tf2_ros/buffer.h> | ||
#include <tf2_ros/transform_listener.h> | ||
#include <geometry_msgs/msg/pose_stamped.hpp> | ||
#include <rclcpp/rclcpp.hpp> | ||
#include <tf2_geometry_msgs/tf2_geometry_msgs.hpp> | ||
|
||
namespace panther_docking | ||
{ | ||
constexpr double kMinimalDetectionDistance = 1.0; | ||
|
||
class DockPosePublisherNode : public rclcpp::Node | ||
{ | ||
public: | ||
DockPosePublisherNode(const std::string & name); | ||
|
||
private: | ||
void publishPose(); | ||
|
||
double timeout_; | ||
std::string target_frame_; | ||
std::vector<std::string> source_frames_; | ||
std::string base_frame_; | ||
rclcpp::Publisher<geometry_msgs::msg::PoseStamped>::SharedPtr pose_publisher_; | ||
std::shared_ptr<tf2_ros::TransformListener> tf_listener_; | ||
std::unique_ptr<tf2_ros::Buffer> tf_buffer_; | ||
rclcpp::TimerBase::SharedPtr timer_; | ||
}; | ||
} // namespace panther_docking | ||
|
||
#endif // PANTHER_DOCKING_DOCK_POSE_PUBLISHER_NODE_HPP_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.