User Manual

- 23 -
(4) Through the above configuration, you can create a workspace, and go to the created
workspace, enter cd ~ / HPS3D_SDK_ROS_Demo /; although this space is empty, we can still build
it, input catkin_make, as shown below:
(5)Enter ls to view the current working directory, you will find two extra folders "build" and "devel".
In the devel folder, you can see a lot of setup.*sh files. Enter source devel/setup.bash to configure
your workspace as shown below:
Note: Any source files, python libraries, scripts, and other static files will be left in the source space
src. However, all generated files, such as library files, executable files, and generated code, are
placed in devel.
2.4.2 Create a ROS packet (Catkin packet)
(1) Create a package named hps_camera, which directly depends on the following three packages:
std_msgs, rospy and roscpp. Enter cd ~/HPS3D_SDK_ROS_Demo/src/ in the terminal and enter the
src directory, then enter, catkin_create_pkg hps_camera std_msgs rospy roscpp, as follows The
figure shows:
(2) Enter rospack depends hps_camera in the terminal, you can see that the package can have
many dependencies, you can see the three dependencies added by itself: std_msgs, rospy and
roscpp, as shown below: