-
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.
* 不要なファイルを削除 * ROS 2対応 * 頭部カメラlaunchファイル追加 * 胸部カメラlaunchファイル追加 * カメラパラメータファイル追加 * カメラ起動オプション追加 * 使用していないライブラリのimportを削除 * 依存パッケージ追加 * RViz設定変更 * camera_name修正 * カメラキャリブレーションパラメータ修正 * README更新
- Loading branch information
Showing
14 changed files
with
166 additions
and
208 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,35 +1,21 @@ | ||
cmake_minimum_required(VERSION 2.8.3) | ||
cmake_minimum_required(VERSION 3.5) | ||
project(sciurus17_vision) | ||
|
||
add_compile_options(-std=c++11) | ||
find_package(ament_cmake REQUIRED) | ||
|
||
find_package(catkin REQUIRED COMPONENTS | ||
cv_bridge | ||
geometry_msgs | ||
image_geometry | ||
image_transport | ||
pcl_ros | ||
roscpp | ||
rospy | ||
sensor_msgs | ||
std_msgs | ||
tf | ||
tf2 | ||
tf2_ros | ||
sciurus17_msgs | ||
dynamic_reconfigure | ||
) | ||
|
||
catkin_package( | ||
install(DIRECTORY | ||
config | ||
launch | ||
DESTINATION share/${PROJECT_NAME}/ | ||
) | ||
|
||
include_directories( | ||
include | ||
${catkin_INCLUDE_DIRS} | ||
) | ||
|
||
set(MESSAGE_DEPENDS sciurus17_msgs_generate_messages) | ||
if(BUILD_TESTING) | ||
find_package(ament_lint_auto REQUIRED) | ||
ament_lint_auto_find_test_dependencies() | ||
endif() | ||
|
||
install(DIRECTORY launch/ | ||
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch | ||
) | ||
ament_package() |
Empty file.
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,26 @@ | ||
image_width: 1280 | ||
image_height: 720 | ||
camera_name: chest_camera | ||
camera_matrix: | ||
rows: 3 | ||
cols: 3 | ||
data: [520.89227, -0.0822 , 628.05406, | ||
0. , 521.19138, 363.34233, | ||
0. , 0. , 1. ] | ||
distortion_model: equidistant | ||
distortion_coefficients: | ||
rows: 1 | ||
cols: 4 | ||
data: [-0.221837, 1.448854, -1.560465, 0.357714] | ||
rectification_matrix: | ||
rows: 3 | ||
cols: 3 | ||
data: [1., 0., 0., | ||
0., 1., 0., | ||
0., 0., 1.] | ||
projection_matrix: | ||
rows: 3 | ||
cols: 4 | ||
data: [520.89227, -0.0822 , 628.05406, 0. , | ||
0. , 521.19138, 363.34233, 0. , | ||
0. , 0. , 1. , 0. ] |
This file was deleted.
Oops, something went wrong.
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,41 @@ | ||
# Copyright 2023 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. | ||
|
||
from ament_index_python.packages import get_package_share_directory | ||
from launch import LaunchDescription | ||
from launch_ros.actions import Node | ||
|
||
|
||
def generate_launch_description(): | ||
camera_info_file = 'file://' + get_package_share_directory( | ||
'sciurus17_vision') + '/config/chest_camera_info.yaml' | ||
usb_cam_node = Node( | ||
package='usb_cam', | ||
executable='usb_cam_node_exe', | ||
namespace='chest_camera', | ||
parameters=[ | ||
{'video_device': '/dev/chestcamera'}, | ||
{'frame_id': 'chest_camera_link'}, | ||
{'image_width': 1280}, | ||
{'image_height': 720}, | ||
{'framerate': 30.0}, | ||
{'camera_name': 'chest_camera'}, | ||
{'camera_info_url': camera_info_file}, | ||
{'pixel_format': 'mjpeg2rgb'} | ||
], | ||
) | ||
|
||
return LaunchDescription([ | ||
usb_cam_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Copyright 2023 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. | ||
|
||
from ament_index_python.packages import get_package_share_directory | ||
from launch import LaunchDescription | ||
from launch.actions import IncludeLaunchDescription | ||
from launch.launch_description_sources import PythonLaunchDescriptionSource | ||
|
||
|
||
def generate_launch_description(): | ||
head_camera_node = IncludeLaunchDescription( | ||
PythonLaunchDescriptionSource([ | ||
get_package_share_directory('realsense2_camera'), | ||
'/launch/rs_launch.py']), | ||
launch_arguments={ | ||
'camera_name': 'head_camera', | ||
'device_type': 'd415', | ||
'rgb_camera.profile': '640x360x30', | ||
'depth_module.profile': '640x360x30', | ||
'pointcloud.enable': 'true', | ||
'align_depth.enable': 'true', | ||
}.items() | ||
) | ||
|
||
return LaunchDescription([ | ||
head_camera_node | ||
]) |
Oops, something went wrong.