Exercise 3.6 unable to find file

After double-checking/correcting the solution versus my setup I am unable to figure out why I am getting this error:

[ERROR] [1573621688.873671776, 821.371000000]: Unable to open file [file_path]

It happens right after it sends the goal. I can only assume it is looking for the get food.txt file in the trajectory config folder. I double-checked that it is there and has the right permissions. Any ideas?

Hi @mewescott!!
I am replying with the steps should be used for the creating the config folder and copying the get_food.txt file.

Create a new config folder mkdir config in your package (in my case it is service_client_pkg_2)

roscd iri_wam_reproduce_trajectory
cd config; ls

To copy the get_food.txt to the new created config folder in your package

user:/home/simulations/public_sim_ws/src/all/iri_wam/iri_wam_reproduce_trajectory/config$ cp get_food.txt /home/user/catkin_ws/src/service_client_pkg_2/config: (cp —> used for copying)

Here in this example the package name is service_client_pkg_2


Hopefully this error won’t show up again.

1 Like

But if it is then I need to redirect where it is looking. Let me know. Thanks.

I had to convert all my images into one image due to forum restrictions.

I compiled this project in C++.

my CMakeLists.txt file should be modified as follows: add iri_wam_reproduce_trajectory' & 'roslib to find_package (in my case it is service_client_pkg_2)

 find_package(catkin REQUIRED COMPONENTS

add_executable(simple_service_client_2 src/simple_service_client_2.cpp)

add_dependencies(simple_service_client_2 ${simple_service_client_2_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})

target_link_libraries(simple_service_client_2 ${catkin_LIBRARIES})

Also change the package.xml file by adding

  <build_depend> iri_wam_reproduce_trajectory </build_depend>
  <exec_depend> iri_wam_reproduce_trajectory </exec_depend>

Then try compiling the package

1 Like

Hi Michael,
Can you do a roscd iri_wam_reproduce_trajectory ? Where does it take you?