Comments (14)
저 또 일하러 가야 해서. 다시 작업하러 오겠습니다. 오늘은 봐야죠. ROS가 먼지...^^
from gcamp_ros2_basic.
진짜 이제 모르겠어요...ㅠ.ㅠ 도와주세용.
from gcamp_ros2_basic.
** Visual Studio 2019 Developer Command Prompt v16.11.10
** Copyright (c) 2021 Microsoft Corporation
C:\gcamp_ros2_ws>c:\opt\ros\foxy\x64\setup.bat
C:\gcamp_ros2_ws>ros2 launch gcamp_gazebo gcamp_world_windows.launch.py
[INFO] [launch]: All log files can be found below C:\Users\tlssk.ros\log\2022-02-23-22-37-28-035304-DESKTOP-IH8GP6F-10944
[INFO] [launch]: Default logging verbosity is set to INFO
Task exception was never retrieved
future: <Task finished name='Task-2' coro=<LaunchService._process_one_event() done, defined at c:\opt\ros\foxy\x64\lib\site-packages\launch\launch_service.py:226> exception=PackageNotFoundError("package 'py_service_pkg' not found, searching: ['c:\\gcamp_ros2_ws\\install\\gcamp_gazebo', 'c:\\opt\\ros\\foxy\\x64']")>
Traceback (most recent call last):
File "c:\opt\ros\foxy\x64\lib\site-packages\ament_index_python\packages.py", line 50, in get_package_prefix
content, package_prefix = get_resource('packages', package_name)
File "c:\opt\ros\foxy\x64\lib\site-packages\ament_index_python\resources.py", line 48, in get_resource
raise LookupError(
LookupError: Could not find the resource 'py_service_pkg' of type 'packages'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\launch_service.py", line 228, in _process_one_event
await self.__process_event(next_event)
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\launch_service.py", line 248, in __process_event
visit_all_entities_and_collect_futures(entity, self.__context))
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\utilities\visit_all_entities_and_collect_futures_impl.py", line 45, in visit_all_entities_and_collect_futures
futures_to_return += visit_all_entities_and_collect_futures(sub_entity, context)
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\utilities\visit_all_entities_and_collect_futures_impl.py", line 45, in visit_all_entities_and_collect_futures
futures_to_return += visit_all_entities_and_collect_futures(sub_entity, context)
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\utilities\visit_all_entities_and_collect_futures_impl.py", line 45, in visit_all_entities_and_collect_futures
futures_to_return += visit_all_entities_and_collect_futures(sub_entity, context)
[Previous line repeated 1 more time]
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\utilities\visit_all_entities_and_collect_futures_impl.py", line 38, in visit_all_entities_and_collect_futures
sub_entities = entity.visit(context)
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\action.py", line 108, in visit
return self.execute(context)
File "c:\opt\ros\foxy\x64\lib\site-packages\launch_ros\actions\node.py", line 431, in execute
ret = super().execute(context)
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\actions\execute_process.py", line 823, in execute
self.__expand_substitutions(context)
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\actions\execute_process.py", line 668, in __expand_substitutions
cmd = [perform_substitutions(context, x) for x in self.__cmd]
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\actions\execute_process.py", line 668, in
cmd = [perform_substitutions(context, x) for x in self.__cmd]
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\utilities\perform_substitutions_impl.py", line 26, in perform_substitutions
return ''.join([context.perform_substitution(sub) for sub in subs])
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\utilities\perform_substitutions_impl.py", line 26, in
return ''.join([context.perform_substitution(sub) for sub in subs])
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\launch_context.py", line 197, in perform_substitution
return substitution.perform(self)
File "c:\opt\ros\foxy\x64\lib\site-packages\launch_ros\substitutions\executable_in_package.py", line 76, in perform
package_prefix = super().perform(context)
File "c:\opt\ros\foxy\x64\lib\site-packages\launch_ros\substitutions\find_package.py", line 79, in perform
result = self.find(package)
File "c:\opt\ros\foxy\x64\lib\site-packages\launch_ros\substitutions\find_package.py", line 96, in find
return get_package_prefix(package_name)
File "c:\opt\ros\foxy\x64\lib\site-packages\ament_index_python\packages.py", line 52, in get_package_prefix
raise PackageNotFoundError(
ament_index_python.packages.PackageNotFoundError: "package 'py_service_pkg' not found, searching: ['c:\\gcamp_ros2_ws\\install\\gcamp_gazebo', 'c:\\opt\\ros\\foxy\\x64']"
Task exception was never retrieved
future: <Task finished name='Task-16' coro=<LaunchService._process_one_event() done, defined at c:\opt\ros\foxy\x64\lib\site-packages\launch\launch_service.py:226> exception=RuntimeError('Signal event received before subprocess transport available.')>
Traceback (most recent call last):
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\launch_service.py", line 228, in _process_one_event
await self.__process_event(next_event)
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\launch_service.py", line 248, in __process_event
visit_all_entities_and_collect_futures(entity, self.__context))
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\utilities\visit_all_entities_and_collect_futures_impl.py", line 38, in visit_all_entities_and_collect_futures
sub_entities = entity.visit(context)
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\action.py", line 108, in visit
return self.execute(context)
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\actions\opaque_function.py", line 75, in execute
return self.__function(context, *self.__args, **self.__kwargs)
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\actions\execute_process.py", line 443, in __on_signal_process_event raise RuntimeError('Signal event received before subprocess transport available.')
RuntimeError: Signal event received before subprocess transport available.
[INFO] [gzserver-1]: process started with pid [13896]
[INFO] [gzclient -2]: process started with pid [37564]
[INFO] [ros2-3]: process started with pid [38392]
[WARNING] [gzclient -2]: 'SIGINT' sent to process[gzclient -2] not supported on Windows, escalating to 'SIGTERM'
[INFO] [gzclient -2]: sending signal 'SIGTERM' to process[gzclient -2]
[WARNING] [gzserver-1]: 'SIGINT' sent to process[gzserver-1] not supported on Windows, escalating to 'SIGTERM'
[INFO] [gzserver-1]: sending signal 'SIGTERM' to process[gzserver-1]
[ERROR] [gzserver-1]: process has died [pid 13896, exit code 1, cmd 'gzserver c:\gcamp_ros2_ws\install\gcamp_gazebo\share\gcamp_gazebo\worlds\bocbot_office.world -s libgazebo_ros_init.so -s libgazebo_ros_factory.so -s libgazebo_ros_force_system.so '].
[ERROR] [gzclient -2]: process has died [pid 37564, exit code 1, cmd 'gzclient '].
[ERROR] [ros2-3]: process[ros2-3] failed to terminate '5' seconds after receiving 'SIGINT', escalating to 'SIGTERM'
[INFO] [ros2-3]: sending signal 'SIGTERM' to process[ros2-3]
[ERROR] [ros2-3]: process has died [pid 38392, exit code 1, cmd 'ros2 param set /gazebo use_sim_time True'].
C:\gcamp_ros2_ws>
from gcamp_ros2_basic.
다시 실행해봤는데 .. 요런 에러 코드가 떠서 공유합니다.
from gcamp_ros2_basic.
모든 로그들을 확인하였습니다.
colcon build
가 실패한 것이 가장 큰 원인이라고 생각되는데요.
저도 시도해 본 결과
colcon build
시windows terminal
을 관리자 권한으로 실행하시고 (오른쪽 클릭을 통해서 )- 환경 변수 설정 시 오류가 생긴 것은 맞아보입니다. 이는 제 강의의 환경 변수를 그대로 사용치 마시고, 영상을 확인하신 뒤 @sinnara2021 님의 PC 위치와 맞추어 다시 한 번 확인들을 부탁드립니다.
아무래도 이것저것 절차들이 많다 보니 제 환경에서 상황을 온전히 구현하는 것이 불가능에 가까운 것 같습니다.\
그래도 설치들은 모두 완료되었고 몇가지 이슈만 잡으면 되는 상황이니 화이팅입니다!!
from gcamp_ros2_basic.
가제보 관련 셋팅 되어 있습니다.
제가 조언드린 내용대로 해보셨는지, 그래도 안된다면 에러 로그는 어떻게 바뀌었는지 알려주시기 바랍니다.
Gazebo 폴더를 캡쳐해서 보여주신다고 해서 제가 원인을 바로 알 수가 없습니다...
초반 글과 같이 캡쳐와 함께 설명을 부탁드립니다.
더불어 Issue 제목도 수정 부탁드립니다.
from gcamp_ros2_basic.
from gcamp_ros2_basic.
가제보 관련 셋팅 되어 있습니다.
제가 조언드린 내용대로 해보셨는지, 그래도 안된다면 에러 로그는 어떻게 바뀌었는지 알려주시기 바랍니다.
Gazebo 폴더를 캡쳐해서 보여주신다고 해서 제가 원인을 바로 알 수가 없습니다... 초반 글과 같이 캡쳐와 함께 설명을 부탁드립니다.
더불어 Issue 제목도 수정 부탁드립니다.
from gcamp_ros2_basic.
제가 추측하는건... 왜 된건지 모르겠는데요. 중복되는 환경변수를 좀 지웠어요
from gcamp_ros2_basic.
근데 에러는 떴어요.. 이 에러는 먼지 모르겠네요.
C:\gcamp_ros2_ws>colcon build --symlink-install --packages-select gcamp_gazebo
[1.953s] root DEBUG Using proactor: IocpProactor
Starting >>> gcamp_gazebo
[1.986s] colcon.colcon_ros.prefix_path.catkin WARNING The path 'C:\opt\ros\foxy\x64\tools\vcpkg\installed\x64-windows' in the environment variable CMAKE_PREFIX_PATH doesn't exist
Finished <<< gcamp_gazebo [9.80s]
Summary: 1 package finished [10.2s]
C:\gcamp_ros2_ws> ros2 launch gcamp_gazebo gcamp_world_windows.launch.py
[INFO] [launch]: All log files can be found below C:\Users\tlssk.ros\log\2022-02-25-14-48-14-313066-DESKTOP-IH8GP6F-27864
[INFO] [launch]: Default logging verbosity is set to INFO
Task exception was never retrieved
future: <Task finished name='Task-2' coro=<LaunchService._process_one_event() done, defined at c:\opt\ros\foxy\x64\lib\site-packages\launch\launch_service.py:226> exception=PackageNotFoundError("package 'py_service_pkg' not found, searching: ['c:\\gcamp_ros2_ws\\install\\gcamp_gazebo', 'c:\\gcamp_ros2_ws\\install\\custom_interfaces', 'c:\\opt\\ros\\foxy\\x64']")>
Traceback (most recent call last):
File "c:\opt\ros\foxy\x64\lib\site-packages\ament_index_python\packages.py", line 50, in get_package_prefix
content, package_prefix = get_resource('packages', package_name)
File "c:\opt\ros\foxy\x64\lib\site-packages\ament_index_python\resources.py", line 48, in get_resource
raise LookupError(
LookupError: Could not find the resource 'py_service_pkg' of type 'packages'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\launch_service.py", line 228, in _process_one_event
await self.__process_event(next_event)
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\launch_service.py", line 248, in __process_event
visit_all_entities_and_collect_futures(entity, self.__context))
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\utilities\visit_all_entities_and_collect_futures_impl.py", line 45, in visit_all_entities_and_collect_futures
futures_to_return += visit_all_entities_and_collect_futures(sub_entity, context)
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\utilities\visit_all_entities_and_collect_futures_impl.py", line 45, in visit_all_entities_and_collect_futures
futures_to_return += visit_all_entities_and_collect_futures(sub_entity, context)
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\utilities\visit_all_entities_and_collect_futures_impl.py", line 45, in visit_all_entities_and_collect_futures
futures_to_return += visit_all_entities_and_collect_futures(sub_entity, context)
[Previous line repeated 1 more time]
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\utilities\visit_all_entities_and_collect_futures_impl.py", line 38, in visit_all_entities_and_collect_futures
sub_entities = entity.visit(context)
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\action.py", line 108, in visit
return self.execute(context)
File "c:\opt\ros\foxy\x64\lib\site-packages\launch_ros\actions\node.py", line 431, in execute
ret = super().execute(context)
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\actions\execute_process.py", line 823, in execute
self.__expand_substitutions(context)
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\actions\execute_process.py", line 668, in __expand_substitutions
cmd = [perform_substitutions(context, x) for x in self.__cmd]
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\actions\execute_process.py", line 668, in
cmd = [perform_substitutions(context, x) for x in self.__cmd]
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\utilities\perform_substitutions_impl.py", line 26, in perform_substitutions
return ''.join([context.perform_substitution(sub) for sub in subs])
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\utilities\perform_substitutions_impl.py", line 26, in
return ''.join([context.perform_substitution(sub) for sub in subs])
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\launch_context.py", line 197, in perform_substitution
return substitution.perform(self)
File "c:\opt\ros\foxy\x64\lib\site-packages\launch_ros\substitutions\executable_in_package.py", line 76, in perform
package_prefix = super().perform(context)
File "c:\opt\ros\foxy\x64\lib\site-packages\launch_ros\substitutions\find_package.py", line 79, in perform
result = self.find(package)
File "c:\opt\ros\foxy\x64\lib\site-packages\launch_ros\substitutions\find_package.py", line 96, in find
return get_package_prefix(package_name)
File "c:\opt\ros\foxy\x64\lib\site-packages\ament_index_python\packages.py", line 52, in get_package_prefix
raise PackageNotFoundError(
ament_index_python.packages.PackageNotFoundError: "package 'py_service_pkg' not found, searching: ['c:\\gcamp_ros2_ws\\install\\gcamp_gazebo', 'c:\\gcamp_ros2_ws\\install\\custom_interfaces', 'c:\\opt\\ros\\foxy\\x64']"
Task exception was never retrieved
future: <Task finished name='Task-16' coro=<LaunchService._process_one_event() done, defined at c:\opt\ros\foxy\x64\lib\site-packages\launch\launch_service.py:226> exception=RuntimeError('Signal event received before subprocess transport available.')>
Traceback (most recent call last):
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\launch_service.py", line 228, in _process_one_event
await self.__process_event(next_event)
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\launch_service.py", line 248, in __process_event
visit_all_entities_and_collect_futures(entity, self.__context))
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\utilities\visit_all_entities_and_collect_futures_impl.py", line 38, in visit_all_entities_and_collect_futures
sub_entities = entity.visit(context)
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\action.py", line 108, in visit
return self.execute(context)
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\actions\opaque_function.py", line 75, in execute
return self.__function(context, *self.__args, **self.__kwargs)
File "c:\opt\ros\foxy\x64\lib\site-packages\launch\actions\execute_process.py", line 443, in __on_signal_process_event
raise RuntimeError('Signal event received before subprocess transport available.')
RuntimeError: Signal event received before subprocess transport available.
[INFO] [gzserver-1]: process started with pid [19712]
[INFO] [gzclient -2]: process started with pid [17360]
[INFO] [ros2-3]: process started with pid [2852]
[WARNING] [gzclient -2]: 'SIGINT' sent to process[gzclient -2] not supported on Windows, escalating to 'SIGTERM'
[INFO] [gzclient -2]: sending signal 'SIGTERM' to process[gzclient -2]
[WARNING] [gzserver-1]: 'SIGINT' sent to process[gzserver-1] not supported on Windows, escalating to 'SIGTERM'
[INFO] [gzserver-1]: sending signal 'SIGTERM' to process[gzserver-1]
[ERROR] [gzclient -2]: process has died [pid 17360, exit code 1, cmd 'gzclient '].
[ERROR] [gzserver-1]: process has died [pid 19712, exit code 1, cmd 'gzserver c:\gcamp_ros2_ws\install\gcamp_gazebo\share\gcamp_gazebo\worlds\bocbot_office.world -s libgazebo_ros_init.so -s libgazebo_ros_factory.so -s libgazebo_ros_force_system.so '].
[ERROR] [ros2-3]: process[ros2-3] failed to terminate '5' seconds after receiving 'SIGINT', escalating to 'SIGTERM'
[INFO] [ros2-3]: sending signal 'SIGTERM' to process[ros2-3]
[ERROR] [ros2-3]: process has died [pid 2852, exit code 1, cmd 'ros2 param set /gazebo use_sim_time True'].
C:\gcamp_ros2_ws>
from gcamp_ros2_basic.
'C:\opt\ros\foxy\x64\tools\vcpkg\installed\x64-windows' in the environment variable CMAKE_PREFIX_PATH doesn't exist
환경 변수 추가 했는데 왜 자꾸 이런 에러가 뜨는걸까요?
from gcamp_ros2_basic.
[ERROR] [gzclient -2]: process has died [pid 17360, exit code 1, cmd 'gzclient '].
[ERROR] [gzserver-1]: process has died [pid 19712, exit code 1, cmd 'gzserver c:\gcamp_ros2_ws\install\gcamp_gazebo\share\gcamp_gazebo\worlds\bocbot_office.world -s libgazebo_ros_init.so -s libgazebo_ros_factory.so -s libgazebo_ros_force_system.so '].
[ERROR] [ros2-3]: process[ros2-3] failed to terminate '5' seconds after receiving 'SIGINT', escalating to 'SIGTERM'
[INFO] [ros2-3]: sending signal 'SIGTERM' to process[ros2-3]
[ERROR] [ros2-3]: process has died [pid 2852, exit code 1, cmd 'ros2 param set /gazebo use_sim_time True'].
체크 해봐야 할 에러 항목들이에요..
from gcamp_ros2_basic.
가제보 관련 셋팅 되어 있습니다.
제가 조언드린 내용대로 해보셨는지, 그래도 안된다면 에러 로그는 어떻게 바뀌었는지 알려주시기 바랍니다.
Gazebo 폴더를 캡쳐해서 보여주신다고 해서 제가 원인을 바로 알 수가 없습니다... 초반 글과 같이 캡쳐와 함께 설명을 부탁드립니다.
더불어 Issue 제목도 수정 부탁드립니다.
제가 사실 깃헙 사용법을 잘 몰라요 ^^;; 제목 수정 하긴 했는데 이러면 되는지 잘 모르겠습니다.
from gcamp_ros2_basic.
시간이 오래 지나 issue를 닫겠습니다. 윈도우 개발 과정은 wsl 사용으로 대체 강의를 제작하여 업로드하겠습니다.
from gcamp_ros2_basic.
Related Issues (20)
- 04강 gazebo simulation 소개 HOT 4
- [BUG] : ROS2 윈도우 설치과정 오류 HOT 3
- gcamp_gazebo 패키지 build 에러. HOT 1
- [BUG] : odome실행 오류_ 중간 프로젝트 - Maze World HOT 2
- src 폴더 내부 정리하기 HOT 1
- [BUG] : ROS2 강의 영상 (3강) - 설치과정에서 ros2 launch gcamp_gazebo gcamp_world_windows.launch.py 코딩 에러 HOT 6
- CMake Error at CMakeLists.txt:23 (find_package) HOT 5
- [BUG] : ROS2 윈도우에서의 개발환경구축 HOT 1
- [BUG] : 실습을 위한 Gazebo Simulation 소개 // 환경 구성의 cbp gcamp_gazebo 부분 HOT 1
- [colcon build error] From. [email protected] HOT 2
- [BUG] : ros2 launch gcamp_gazebo gcamp_world.launch.py 커맨드 실행 시 frame 문제로 인한 gazebo 출력 실패 HOT 6
- [Feature Request] : skidbot 과 diffbot의 odometry_pose 값의 차이점에 관한 질문입니다. HOT 1
- [BUG] : Colcon을 이용한 빌드 과정에서 생기는 오류 HOT 1
- [BUG] : rviz에서 No transform from "front_right_wheel" to "robot_footprint" ERROR HOT 2
- src 없이 package build HOT 1
- [BUG] : graphviz 설치 중에 액세스가 거부되었습니다. HOT 1
- gazebo simulation에서 teleop keyboard를 했는데 로봇이 움직이지 않습니다.
- Gazebo package error Failed to load plugin libgazebo_ros_factory.so: libgazebo_ros_factory.so: cannot open shared object file: No such file or directory HOT 7
- [BUG] : HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gcamp_ros2_basic.