-
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.
Merge remote-tracking branch 'origin/ros2' into feature/moveit_py
- Loading branch information
Showing
22 changed files
with
962 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>sciurus17</name> | ||
<version>3.0.0</version> | ||
<version>3.1.0</version> | ||
<description>ROS 2 package suite of Sciurus17</description> | ||
<maintainer email="[email protected]">RT Corporation</maintainer> | ||
|
||
|
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>sciurus17_control</name> | ||
<version>3.0.0</version> | ||
<version>3.1.0</version> | ||
<description>The Sciurus17 control package</description> | ||
<maintainer email="[email protected]">RT Corporation</maintainer> | ||
<license>Apache License 2.0</license> | ||
|
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,89 @@ | ||
# Copyright 2024 RT Corporation | ||
# | ||
# 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. | ||
|
||
import os | ||
|
||
from ament_index_python.packages import get_package_share_directory | ||
from launch import LaunchDescription | ||
from launch.actions import DeclareLaunchArgument | ||
from launch.substitutions import LaunchConfiguration | ||
from launch_ros.actions import Node | ||
from launch_ros.actions import SetParameter | ||
from sciurus17_description.robot_description_loader import RobotDescriptionLoader | ||
import yaml | ||
|
||
|
||
def load_file(package_name, file_path): | ||
package_path = get_package_share_directory(package_name) | ||
absolute_file_path = os.path.join(package_path, file_path) | ||
|
||
try: | ||
with open(absolute_file_path, 'r') as file: | ||
return file.read() | ||
except EnvironmentError: # parent of IOError, OSError *and* WindowsError where available | ||
return None | ||
|
||
|
||
def load_yaml(package_name, file_path): | ||
package_path = get_package_share_directory(package_name) | ||
absolute_file_path = os.path.join(package_path, file_path) | ||
|
||
try: | ||
with open(absolute_file_path, 'r') as file: | ||
return yaml.safe_load(file) | ||
except EnvironmentError: # parent of IOError, OSError *and* WindowsError where available | ||
return None | ||
|
||
|
||
def generate_launch_description(): | ||
description_loader = RobotDescriptionLoader() | ||
|
||
robot_description_semantic_config = load_file( | ||
'sciurus17_moveit_config', 'config/sciurus17.srdf') | ||
robot_description_semantic = { | ||
'robot_description_semantic': robot_description_semantic_config} | ||
|
||
kinematics_yaml = load_yaml('sciurus17_moveit_config', 'config/kinematics.yaml') | ||
|
||
declare_example_name = DeclareLaunchArgument( | ||
'example', default_value='point_cloud_detection', | ||
description=('Set an example executable name: ' | ||
'[point_cloud_detection]') | ||
) | ||
|
||
declare_use_sim_time = DeclareLaunchArgument( | ||
'use_sim_time', default_value='false', | ||
description=('Set true when using the gazebo simulator.') | ||
) | ||
|
||
picking_node = Node(name='pick_and_place_tf', | ||
package='sciurus17_examples', | ||
executable='pick_and_place_tf', | ||
output='screen', | ||
parameters=[{'robot_description': description_loader.load()}, | ||
robot_description_semantic, | ||
kinematics_yaml]) | ||
|
||
detection_node = Node(name=[LaunchConfiguration('example'), '_node'], | ||
package='sciurus17_examples', | ||
executable=LaunchConfiguration('example'), | ||
output='screen') | ||
|
||
return LaunchDescription([ | ||
declare_use_sim_time, | ||
SetParameter(name='use_sim_time', value=LaunchConfiguration('use_sim_time')), | ||
picking_node, | ||
declare_example_name, | ||
detection_node | ||
]) |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>sciurus17_examples</name> | ||
<version>3.0.0</version> | ||
<version>3.1.0</version> | ||
<description>examples of Sciurus17 ROS package</description> | ||
|
||
<maintainer email="[email protected]">RT Corporation</maintainer> | ||
|
@@ -24,6 +24,7 @@ | |
<depend>image_geometry</depend> | ||
<depend>libopencv-dev</depend> | ||
<depend>moveit_ros_planning_interface</depend> | ||
<depend>pcl_ros</depend> | ||
<depend>rclcpp</depend> | ||
<depend>rclcpp_components</depend> | ||
<depend>tf2_geometry_msgs</depend> | ||
|
Oops, something went wrong.