자칼 탑재 전 테스트용! 2022.11.09
1. 하드웨어 연결
2. 네트워크 세팅
박스쳐진 부분이 해당 포트의 IP주소, enp46s0이 포트의 이름!
sudo ip add flush enp46s0
ip addr show dev enp46s0
- PC의 IP를 설정해 준다.
sudo ip link set enp46s0 up
sudo ip addr add 192.168.0.23/24 dev enp46s0
- 센서의 IP를 설정한다.
sudo dnsmasq -C /dev/null -kd -F 192.168.0.0,192.168.0.100 -i enp46s0 --bind-dynamic
192.168.0.33이 DHCP에서 할당받은 센서 IP이다.
⭐ 라우터의 DHCP 기능 쓰면 쉽다
3. ROS 드라이버 설치
필요한 요소 미리 설치
$ sudo apt install -y \
ros-$ROS_DISTRO-pcl-ros \
ros-$ROS_DISTRO-rviz \
ros-$ROS_DISTRO-tf2-geometry-msgs
$ sudo apt install -y \
build-essential \
libeigen3-dev \
libjsoncpp-dev \
cmake
catkin_ws, src 폴더는 미리 만들었다고 가정한다.
~/catkin_ws/src 경로에서 진행한다.
$ git clone --recurse-submodules https://github.com/ouster-lidar/ouster-ros.git
$ cd ~/catkin_ws
$ catkin_make --cmake-args -DCMAKE_BUILD_TYPE=Release
드라이버 설치 후, 네트워크 주소(센서, 클라이언트) 주소를 ouster_ros/launch/sensor.launch 에서 수정한다.
$ roslaunch ouster_ros sensor.launch
참고자료
make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libpcl_common.so', needed by '/home/cake1/catkin_ws/devel/lib/libouster_ros.so'. Stop.
!!!!! pcl은 커맨드라인으로 받은 것 말고 별도로 굳이 설치하지 말자,,,
pcl 버전 문제때문에 1주일이 날아갔다 😢
Uploaded by N2T
'Study > 각종 세팅' 카테고리의 다른 글
SENNHEIZER Profile microphone ROS 드라이버 셋업 (2) | 2024.06.05 |
---|---|
FLIR BFS 카메라 ROS 드라이버 셋업 (0) | 2023.07.13 |
렌즈 공부하기 - FoV, 문자 뜻 (0) | 2023.03.14 |