...
POST No. 2591942
ros2 dashing
2022-07-14 04:12:32 n164793132850526

안녕하세요.

ros2 dashing 버전에서 머신러닝을 돌리려고 합니다.

해당 튜토리얼대로 실행하고 있습니다.

그러나 stage3에서 장애물을 움직이려고 하는데 움직이지 않습니다.

해결 방안이 있는지 궁금하여 문의드립니다.

2022-07-14 04:12:32
n164793132850526
2022-07-14 09:44:56 유기웅

안녕하세요.

따로 오류메시지는 없나요?

오류 메시지가 있다면 캡처하여 첨부해 주시면 좀 더 해결하는 데 도움드릴 수가 있습니다.

감사합니다. 

comment
2022-07-14 15:57:56 n164793132850526
$ ros2 launch turtlebot3_gazebo turtlebot3_dqn_stage3.launch.py
$ ros2 run turtlebot3_dqn dqn_gazebo 3
$ ros2 run turtlebot3_dqn dqn_environment
$ ros2 run turtlebot3_dqn dqn_agent 3

튜토리얼의 명령어 입니다.
turtlebot3_moving_obstacle 관련 코드가 없는데 실행 launch 파일만 존재합니다..

ROS2 dashing 버전에서 gazebo에서 obstacle 관련해서 어떻게 움직일 수 있는지 궁금합니다.
2022-07-14 15:57:56
n164793132850526
2022-07-14 09:44:56
ykw4463
2022-07-18 18:11:36 손의형

안녕하세요,

 

머신러닝 예제를 실행하기 위해서는 9. Machine Learning > 9.1.4 Machine Learning Packages의 경고문구와 같이 turtlebot3_simulations 패키지가 설치되어 있어야 합니다.

WARNING: Be sure to install turtlebot3, turtlebot3_msgs and turtlebot3_simulations package before installation of machine learning packages.

 

머신러닝 가제보 환경에 대한 코드 구현이 아래와 같이 turtlebot3_simulatinos 패키지에 있기 때문입니다.

https://github.com/ROBOTIS-GIT/turtlebot3_simulations/blob/dashing-devel/turtlebot3_gazebo/models/turtlebot3_dqn_world/obstacle_plugin/obstacles.cc 

 

감사합니다.

comment
2022-07-19 12:02:24 n164793132850526
친절하게 답변해주셔서 감사합니다. 해당 패키지가 설정되어 있는 것은 확인했습니다. 마지막으로 하나만 여쭤보면 현재 튜토리얼 상에서는 다음과 같은 명령어로 구성되어 있습니다.

$ ros2 launch turtlebot3_gazebo turtlebot3_dqn_stage3.launch.py
$ ros2 run turtlebot3_dqn dqn_gazebo 3
$ ros2 run turtlebot3_dqn dqn_environment
$ ros2 run turtlebot3_dqn dqn_agent 3

해당 turtlebot3_moving_obstacle을 사용하는 명령어는 따로 적혀있지 않아 다음과 같은 명령어를 실행하였습니다.

ros2 launch turtlebot3_dqn turtlebot3_dqn_stage3.launch.py

해당 명령어를 사용하면 다음과 같은 에러가 나왔습니다.

[ERROR] [launch]: Caught exception in launch (see debug for traceback): executable 'turtlebot3_dqn' not found on the libexec directory '/home/user/turtlebot3_ws/install/turtlebot3_dqn/lib/turtlebot3_dqn'

제가 잘못 명령어를 사용하였는지 장애물을 이동할 때 사용하는 명령어가 따로 존재하는지 궁금합니다.

친절하게 답변해주셔서 다시 한번 감사합니다.
2022-07-19 12:02:24
n164793132850526
2022-07-18 18:11:36
will_son