Browse Source

Update

add troubleshooting for open3d_preview and rviz2
Update dependencies script to use arducam-tof-sdk-dev package instead of arducam package
pull/96/head
antonio-ardu 4 months ago committed by Lee
parent
commit
e0af5aae16
  1. 2
      Install_dependencies_jetson.sh
  2. 1
      README.md
  3. BIN
      img/rviz_error.png
  4. 29
      ros2_publisher/README.md

2
Install_dependencies_jetson.sh

@ -8,7 +8,7 @@ if ! sudo apt install -y cmake curl python3-pip python3-opencv python3-numpy >/d
exit 1
fi
if [ $(dpkg -l | grep -c arducam) -lt 1 ]; then
if [ $(dpkg -l | grep -c arducam-tof-sdk-dev) -lt 1 ]; then
echo "Add Arducam_ppa repositories."
curl -s --compressed "https://arducam.github.io/arducam_ppa/KEY.gpg" | sudo apt-key add -
sudo curl -s --compressed -o /etc/apt/sources.list.d/arducam_list_files.list "https://arducam.github.io/arducam_ppa/arducam_list_files.list"

1
README.md

@ -127,6 +127,7 @@ Clone this repository and enter the directory.
##### Run
> Run in the build/open3d_preview folder
> If you do not see a point cloud window, please try adding the environment variable `export MESA_GL_VERSION_OVERRIDE=4.5` before running the program.
```shell
cd build/open3d_preview

BIN
img/rviz_error.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

29
ros2_publisher/README.md

@ -1,13 +1,21 @@
## Run the example in the ros2_publisher folder
**RaspberryPi:**
> Please refer to the instructions above for _*a. Driver Install*_ , _*b.Configuration*_ and _*c.SDK install*_ whice run on RaspberryPi
**Jetson:**
> Please refer to the instructions above for _*project dependencies*_ and _*SDK install*_ whice run on Jetson
### Ros2 installed on RaspberryPI
**Note:**
This script only supports RaspberryPi OS bullseye 32-bit,If you want to run ros2 on 64-bit os, you can see this [repository](https://github.com/Ar-Ray-code/rpi-bullseye-ros2)
>The example is based on ros2,We found the installation script on github, you can install it as follows, or you can install it yourself. author : [Ar-Ray](https://github.com/Ar-Ray-code/rpi-bullseye-ros2)
> The example is based on ros2,We found the installation script on github, you can install it as follows, or you can install it yourself. author : [Ar-Ray](https://github.com/Ar-Ray-code/rpi-bullseye-ros2)
```Shell
# default : (humble, arm7l)
curl -s https://raw.githubusercontent.com/v1ster/rpi-bullseye-ros2/main/install.bash | bash
@ -19,9 +27,13 @@ echo "source /opt/ros/humble/setup.bash" >> ~/.bashrc
echo "export ROS_DOMAIN_ID=7" >> ~/.bashrc
source ~/.bashrc
```
### Ros2 installed on Jetson
> Please refer to the instructions above for _* Driver Install*_ .
The example is based on ros2, please refer to [ros2 installation](https://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debians.html) and install it yourself
```Shell
# Install the compilation tool colcon
sudo apt install python3-colcon-common-extensions
@ -30,21 +42,36 @@ echo "source /opt/ros/humble/setup.bash" >> ~/.bashrc
echo "export ROS_DOMAIN_ID=7" >> ~/.bashrc
source ~/.bashrc
```
#### Compilation
```Shell
cd Arducam_tof_camera/ros2_publisher
colcon build --merge-install
```
#### Run C++ examples
```Shell
. install/setup.bash
ros2 run arducam_rclcpp_tof_pointcloud tof_pointcloud
```
#### Run Python examples
```shell
. install/setup.bash
ros2 run arducam_rclpy_tof_pointcloud tof_pointcloud
```
>You can preview by running rviz2 on the host in the LAN
#### RViz2
> If you encounter an error like this:
> ![rviz::RenderSystem: error](../img/rviz_error.png)
> Make sure to set the Display Server to X11.
```Shell
rviz2
```

Loading…
Cancel
Save