Hi all,
I encountered an error when compiling the code for Exercise 5.1: The 'trajectory_by_name_srv/TrajByName.h' file not found
.
I followed all the instructions in Exercise 5.1 and added in CMakeLists.txt:
find_package(catkin REQUIRED COMPONENTS
roscpp
trajectory_by_name_srv
)
In package.xml
, I also added:
<buildtool_depend>catkin</buildtool_depend>
<build_depend>roscpp</build_depend>
<build_depend>trajectory_by_name_srv</build_depend>
<build_export_depend>roscpp</build_export_depend>
<build_export_depend>trajectory_by_name_srv</build_export_depend>
<exec_depend>roscpp</exec_depend>
<exec_depend>trajectory_by_name_srv</exec_depend>
I also tried this to show the ros service msg:
user:/home/simulations/public_sim_ws/devel/lib$ rossrv show trajectory_by_name_srv/TrajByName
string traj_name
---
bool success
string status_message
Could anyone help me check this problem, please?
Best,
Weiheng