Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tutorial_ros_pub_sub
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CeTI
ROS
CeTI Summer School
tutorial_ros_pub_sub
Commits
52c02fb3
Commit
52c02fb3
authored
4 years ago
by
Sebastian Ebert
Browse files
Options
Downloads
Patches
Plain Diff
fixed build
parent
d317457d
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+21
-4
21 additions, 4 deletions
CMakeLists.txt
package.xml
+9
-11
9 additions, 11 deletions
package.xml
with
30 additions
and
15 deletions
CMakeLists.txt
+
21
−
4
View file @
52c02fb3
...
@@ -2,20 +2,35 @@ cmake_minimum_required(VERSION 3.0.2)
...
@@ -2,20 +2,35 @@ cmake_minimum_required(VERSION 3.0.2)
project
(
tutorial_ros_pub_sub
)
project
(
tutorial_ros_pub_sub
)
## Find catkin and any catkin packages
## Find catkin and any catkin packages
find_package
(
catkin REQUIRED COMPONENTS roscpp rospy std_msgs message_generation
)
find_package
(
catkin REQUIRED COMPONENTS roscpp rospy std_msgs message_generation
genmsg
)
## Declare ROS messages and services
## Declare ROS messages and services
add_message_files
(
FILES Num.msg
)
add_message_files
(
add_service_files
(
FILES AddTwoInts.srv
)
FILES
Num.msg
)
add_service_files
(
FILES
AddTwoInts.srv
)
## Generate added messages and services
## Generate added messages and services
generate_messages
(
DEPENDENCIES std_msgs
)
generate_messages
(
DEPENDENCIES
std_msgs
)
## Declare a catkin package
## Declare a catkin package
catkin_package
(
catkin_package
(
CATKIN_DEPENDS message_runtime
CATKIN_DEPENDS message_runtime
)
)
include_directories
(
include
${
catkin_INCLUDE_DIRS
}
)
## Build talker and listener
## Build talker and listener
include_directories
(
include
${
catkin_INCLUDE_DIRS
}
)
include_directories
(
include
${
catkin_INCLUDE_DIRS
}
)
...
@@ -27,6 +42,8 @@ target_link_libraries(listener ${catkin_LIBRARIES})
...
@@ -27,6 +42,8 @@ target_link_libraries(listener ${catkin_LIBRARIES})
add_executable
(
add_two_ints_server src/add_two_ints_server.cpp
)
add_executable
(
add_two_ints_server src/add_two_ints_server.cpp
)
target_link_libraries
(
add_two_ints_server
${
catkin_LIBRARIES
}
)
target_link_libraries
(
add_two_ints_server
${
catkin_LIBRARIES
}
)
#add_dependencies(add_two_ints_server tutorial_ros_pub_sub_generate_gencpp)
add_executable
(
add_two_ints_client src/add_two_ints_client.cpp
)
add_executable
(
add_two_ints_client src/add_two_ints_client.cpp
)
target_link_libraries
(
add_two_ints_client
${
catkin_LIBRARIES
}
)
target_link_libraries
(
add_two_ints_client
${
catkin_LIBRARIES
}
)
#add_dependencies(add_two_ints_client tutorial_ros_pub_sub_generate_gencpp)
This diff is collapsed.
Click to expand it.
package.xml
+
9
−
11
View file @
52c02fb3
<?xml version="1.0"?>
<?xml version="1.0"?>
<package
format=
"2"
>
<package
format=
"2"
>
<name>
tutorial_ros_pub_sub
</name>
<name>
tutorial_ros_pub_sub
</name>
<version>
0
.0.0
</version>
<version>
1
.0.0
</version>
<description>
The tutorial_ros_pub_sub package
</description>
<description>
The tutorial_ros_pub_sub package
</description>
<!-- One maintainer tag required, multiple allowed, one person per tag -->
<!-- One maintainer tag required, multiple allowed, one person per tag -->
<!-- Example: -->
<!-- Example: -->
<!-- <maintainer email="jane.doe@example.com">Jane Doe</maintainer> -->
<!-- <maintainer email="jane.doe@example.com">Jane Doe</maintainer> -->
<maintainer
email=
"sebastian@todo.todo"
>
sebastian
</maintainer>
<maintainer
email=
"sebastian.ebert@tu-dresden.de"
>
Sebastian Ebert
</maintainer>
<maintainer
email=
"johannes.mey@tu-dresden.de"
>
Johannes Mey
</maintainer>
<!-- One license tag required, multiple allowed, one license per tag -->
<!-- One license tag required, multiple allowed, one license per tag -->
<!-- Commonly used license strings: -->
<!-- Commonly used license strings: -->
<!-- BSD, MIT, Boost Software License, GPLv2, GPLv3, LGPLv2.1, LGPLv3 -->
<!-- BSD, MIT, Boost Software License, GPLv2, GPLv3, LGPLv2.1, LGPLv3 -->
<license>
TODO
</license>
<license>
Copyright by Willow Garage
</license>
<!-- Url tags are optional, but multiple are allowed, one per tag -->
<!-- Url tags are optional, but multiple are allowed, one per tag -->
...
@@ -32,7 +33,9 @@
...
@@ -32,7 +33,9 @@
<!-- Dependencies can be catkin packages or system dependencies -->
<!-- Dependencies can be catkin packages or system dependencies -->
<!-- Examples: -->
<!-- Examples: -->
<!-- Use depend as a shortcut for packages that are both build and exec dependencies -->
<!-- Use depend as a shortcut for packages that are both build and exec dependencies -->
<!-- <depend>roscpp</depend> -->
<depend>
roscpp
</depend>
<build_depend>
std_msgs
</build_depend>
<!-- Note that this is equivalent to the following: -->
<!-- Note that this is equivalent to the following: -->
<!-- <build_depend>roscpp</build_depend> -->
<!-- <build_depend>roscpp</build_depend> -->
<!-- <exec_depend>roscpp</exec_depend> -->
<!-- <exec_depend>roscpp</exec_depend> -->
...
@@ -49,12 +52,7 @@
...
@@ -49,12 +52,7 @@
<!-- Use doc_depend for packages you need only for building documentation: -->
<!-- Use doc_depend for packages you need only for building documentation: -->
<!-- <doc_depend>doxygen</doc_depend> -->
<!-- <doc_depend>doxygen</doc_depend> -->
<buildtool_depend>
catkin
</buildtool_depend>
<buildtool_depend>
catkin
</buildtool_depend>
<build_depend>
roscpp
</build_depend>
<build_depend>
std_msgs
</build_depend>
<build_export_depend>
roscpp
</build_export_depend>
<build_export_depend>
std_msgs
</build_export_depend>
<exec_depend>
roscpp
</exec_depend>
<exec_depend>
std_msgs
</exec_depend>
<!-- The export tag contains other, unspecified, tags -->
<!-- The export tag contains other, unspecified, tags -->
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment