-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscenario.txt
49 lines (35 loc) · 1.49 KB
/
scenario.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
terminator -l cartrasche
# roscore on
sudo chmod 777 /dev/ttyACM0
rosrun rosserial_python serial_node.py _baud:=57600 _port:=/dev/ttyACM0
sudo shutdown -h now
rostopic pub -r 0.5 /cmd_vel geometry_msgs/Twist -- '[0.5, 0.0, 0.0]' '[0.0, 0.0, 0.0]'
rostopic pub -r 0.5 /cmd_vel geometry_msgs/Twist -- '[0.0, 0.0, 0.0]' '[0.0, 0.0, 1.0]'
rostopic pub -r 0.5 /cmd_vel geometry_msgs/Twist -- '[0.0, 0.0, 0.0]' '[0.0, 0.0, 0.0]'
rostopic pub /cmd_vel geometry_msgs/Twist -- '[0.0, 0.0, 0.0]' '[0.0, 0.0, 0.0]'
rostopic pub -r 0.5 /switch_tray std_msgs/Int32 -- '1'
# jetson ssh terminal 3개 실행
-- terminal 1 serial 통신 --
sudo chmod 777 /dev/ttyACM0
rosrun rosserial_python serial_node.py _baud:=57600 _port:=/dev/ttyACM0
-- terminal 2 lidar on --
roslaunch sensor lidar_bringup.launch
-- terminal 3 slam launch --
roslaunch cartrasche_slam cartrasche_slam.launch
--- synchronize ---
sudo systemctl restart chrony
--- git pull from remote ---
git pull origin main
--- droidcam in jetson ---
env ANDROID_SERIAL=R3CWC0BMKVT droidcam-cli adb 4740 -dev=/dev/video0
droidcam-cli adb 4740
*make sure to select camera Back 2
-- adb device cannot detect --
adb kill-server
adb start-server
sudo rmmod v4l2loopback_dc
sudo insmod /lib/modules/`uname -r`/kernel/drivers/media/video/v4l2loopback-dc.ko width=1280 height=720
-- camera calibration --
rosrun camera_calibration cameracalibrator.py --size 8x6 --square 0.025 image:=/usb_cam/image_raw camera:=/usb_cam
*prepare a checkerboard