Giter VIP home page Giter VIP logo

Comments (14)

sinnara2021 avatar sinnara2021 commented on July 17, 2024

저 또 일하러 가야 해서. 다시 작업하러 오겠습니다. 오늘은 봐야죠. ROS가 먼지...^^

from gcamp_ros2_basic.

sinnara2021 avatar sinnara2021 commented on July 17, 2024

진짜 이제 모르겠어요...ㅠ.ㅠ 도와주세용.

from gcamp_ros2_basic.

sinnara2021 avatar sinnara2021 commented on July 17, 2024

** 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.

sinnara2021 avatar sinnara2021 commented on July 17, 2024

다시 실행해봤는데 .. 요런 에러 코드가 떠서 공유합니다.

from gcamp_ros2_basic.

kimsooyoung avatar kimsooyoung commented on July 17, 2024

모든 로그들을 확인하였습니다.

colcon build가 실패한 것이 가장 큰 원인이라고 생각되는데요.
저도 시도해 본 결과

  1. colcon buildwindows terminal관리자 권한으로 실행하시고 (오른쪽 클릭을 통해서 )
  2. 환경 변수 설정 시 오류가 생긴 것은 맞아보입니다. 이는 제 강의의 환경 변수를 그대로 사용치 마시고, 영상을 확인하신 뒤 @sinnara2021 님의 PC 위치와 맞추어 다시 한 번 확인들을 부탁드립니다.

아무래도 이것저것 절차들이 많다 보니 제 환경에서 상황을 온전히 구현하는 것이 불가능에 가까운 것 같습니다.\

그래도 설치들은 모두 완료되었고 몇가지 이슈만 잡으면 되는 상황이니 화이팅입니다!!

from gcamp_ros2_basic.

kimsooyoung avatar kimsooyoung commented on July 17, 2024

가제보 관련 셋팅 되어 있습니다.

제가 조언드린 내용대로 해보셨는지, 그래도 안된다면 에러 로그는 어떻게 바뀌었는지 알려주시기 바랍니다.

Gazebo 폴더를 캡쳐해서 보여주신다고 해서 제가 원인을 바로 알 수가 없습니다...
초반 글과 같이 캡쳐와 함께 설명을 부탁드립니다.

더불어 Issue 제목도 수정 부탁드립니다.

from gcamp_ros2_basic.

sinnara2021 avatar sinnara2021 commented on July 17, 2024

image

from gcamp_ros2_basic.

sinnara2021 avatar sinnara2021 commented on July 17, 2024

가제보 관련 셋팅 되어 있습니다.

제가 조언드린 내용대로 해보셨는지, 그래도 안된다면 에러 로그는 어떻게 바뀌었는지 알려주시기 바랍니다.

Gazebo 폴더를 캡쳐해서 보여주신다고 해서 제가 원인을 바로 알 수가 없습니다... 초반 글과 같이 캡쳐와 함께 설명을 부탁드립니다.

더불어 Issue 제목도 수정 부탁드립니다.

from gcamp_ros2_basic.

sinnara2021 avatar sinnara2021 commented on July 17, 2024

제가 추측하는건... 왜 된건지 모르겠는데요. 중복되는 환경변수를 좀 지웠어요

from gcamp_ros2_basic.

sinnara2021 avatar sinnara2021 commented on July 17, 2024

근데 에러는 떴어요.. 이 에러는 먼지 모르겠네요.
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.

sinnara2021 avatar sinnara2021 commented on July 17, 2024

'C:\opt\ros\foxy\x64\tools\vcpkg\installed\x64-windows' in the environment variable CMAKE_PREFIX_PATH doesn't exist
환경 변수 추가 했는데 왜 자꾸 이런 에러가 뜨는걸까요?

from gcamp_ros2_basic.

sinnara2021 avatar sinnara2021 commented on July 17, 2024

[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.

sinnara2021 avatar sinnara2021 commented on July 17, 2024

가제보 관련 셋팅 되어 있습니다.

제가 조언드린 내용대로 해보셨는지, 그래도 안된다면 에러 로그는 어떻게 바뀌었는지 알려주시기 바랍니다.
Gazebo 폴더를 캡쳐해서 보여주신다고 해서 제가 원인을 바로 알 수가 없습니다... 초반 글과 같이 캡쳐와 함께 설명을 부탁드립니다.
더불어 Issue 제목도 수정 부탁드립니다.

제가 사실 깃헙 사용법을 잘 몰라요 ^^;; 제목 수정 하긴 했는데 이러면 되는지 잘 모르겠습니다.

from gcamp_ros2_basic.

kimsooyoung avatar kimsooyoung commented on July 17, 2024

시간이 오래 지나 issue를 닫겠습니다. 윈도우 개발 과정은 wsl 사용으로 대체 강의를 제작하여 업로드하겠습니다.

from gcamp_ros2_basic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.