- ROS2 Humble Project for MOIRO
moiro_ws
는 실시간으로 타겟 인물을 촬영하는 로봇의 제어를 위한 ROS2 Workspace입니다.
git clone https://github.com/your_username/moiro_ws.git
cd moiro_ws
git submodule update --init --recursive
- MOIRO vision setup : https://github.com/MOIRO-KAIROS/moiro_vision
- MOIRO agv setup : https://github.com/MOIRO-KAIROS/moiro_agv
- MOIRO arm setup : https://github.com/MOIRO-KAIROS/moiro_arm
cd moiro_ws
source /opt/ros/humble/setup.bash
colcon build
# Raspi
echo "source /opt/ros/humble/setup.bash" >> ~/.bashrc
echo "export ROS_DOMAIN_ID=<$WANTED_ROS_DOMAIN>" >> ~/.bashrc
echo "export LDS_MODEL=LDS-02" >> ~/.bashrc
echo "source $HOME/moiro_ws/install/setup.bash" >> ~/.bashrc
# COM
echo "source /opt/ros/humble/setup.bash" >> ~/.bashrc
echo "export ROS_DOMAIN_ID=<$WANTED_ROS_DOMAIN>" >> ~/.bashrc
echo "source $HOME/moiro_ws/install/setup.bash" >> ~/.bashrc
- 명령어 순서 매우 주의해서 입력
# Rasp
ros2 launch moiro_agv_bringup moiro_agv.launch.py
# 부착 COM
ros2 launch adaface_ros adaface.launch.py person_name:=<$PERSON_NAME>
sudo chmod 777 /dev/ttyACM0
ros2 run moiro_arm_robot_driver sync_play
ros2 launch moiro_arm_move_group moiro_arm_move_group.launch.py
ros2 launch moiro_arm_move_group moiro_arm_move_group_service_class_interface.launch.py
# Monitoring COM
ros2 run human_follower human_follower min_depth:=<$min_depth> max_depth:=<$max_depth>"
- 참고하여서 설치 : https://www.youtube.com/watch?v=anUmPoF6eJY
droidcam
# port 가 이미 지정되어 있다면,
lsof -n -i -P | grep {PORT_NUM} | grep -v grep | awk '{print $2}' | xargs kill -9
# flask가 없다면,
pip install flask==3.0.3
## Flask용 (COM2) -- PORT : 8080
python3 moiro_testTool/moiro_web/app.py
# MOIRO AGV용 (Raspberry pi) -- PORT : 5000
# lsof -n -i -P | grep 8080 | grep -v grep | awk '{print $2}' | xargs kill -9
python3 moiro_testTool/moiro_web/Rasp.py
# Human Follower용 (COM2) -- PORT : 5001
# lsof -n -i -P | grep 5001 | grep -v grep | awk '{print $2}' | xargs kill -9
python3 moiro_testTool/moiro_web/COM2.py
# 부착 COM용 (COM1) -- PORT : 5000
# lsof -n -i -P | grep 5001 | grep -v grep | awk '{print $2}' | xargs kill -9
python3 moiro_testTool/moiro_web/COM1.py
-
버튼의 순서를 지켜서 시행해야함
-
Reset의 경우, start만 했으면 적용됨
-
Record button을 통해 현재 촬영화면을 저장 가능
-
[
Sequence
] Driodcam Connect ➡️ Raspberry Pi connect ➡️ start Adaface ➡️ Sync play ➡️ start Mycobot ➡️ start Follower
- [
LINK
] https://www.youtube.com/watch?v=wvV16o518Vw - [
SIDE VIDEO
] Actual shot video by phone