1 Configuration information

1.1 package.xml

<name>
<version>
<description>
<maintainer email=””>
<license>                            # license 
<buildtool_depnd>                    # Build tool dependencies
<build_depend>                        #  Compile dependencies
    rclpy
    std_msg
    message_generation
<exec_depend>                        # Execute dependency
    turtlesim
    rclpy
    std_msgs
    message_runtime
    sensor_msgs
    open3d
    geometry_msgs            # tf2 related
    tf_transformations
    tf_ros
    launch                    # Launch file
    launch_ros
<test_depend>                        # Test dependencies
<build_export_depend>                # export dependencies
    ament_python
<run_depend>                    # run dependencies

1.2 C++(CMakeLists.txt)

# Add dependency package
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(example_interfaces REQUIRED)

# Add executable file
add_executable(server src/add_two_ints_server.cpp)
ament_target_dependencies(server
  rclcpp example_interfaces)

add_executable(client src/add_two_ints_client.cpp)
ament_target_dependencies(client
  rclcpp example_interfaces)

#  Install executable
install(TARGETS
  server
  client
  DESTINATION lib/${PROJECT_NAME})

1.3 Python(setup.py)

data_files
    launch files: (os.path.join('share', package_name, "launch"), glob('launch/*.launch.py')),
    configuration files: (os.path.join('share', package_name, "config"), glob('config/*')),
    3D model files: (os.path.join('share', package_name, "resource"), glob('resource/*.ply')),
    Robot description file: (os.path.join('share', package_name), glob('urdf/*'))

entry_points
    node name = package name. file name: main

results matching ""

    No results matching ""