ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Try this. Change name of your main source code file algorithm_1.cpp to dijkstra.cpp. Use same name for both executable and source file.

add_executable(dijkstra src/dijkstra.cpp)

target_link_libraries(dijkstra
${catkin_LIBRARIES}
)

Try this. Change name of your main source code file algorithm_1.cpp to dijkstra.cpp. Use same name for both executable and source file.

...
add_executable(dijkstra src/dijkstra.cpp)

target_link_libraries(dijkstra
${catkin_LIBRARIES}
)
...

Try this. Change name of your main source code file algorithm_1.cpp to dijkstra.cpp. Use same name for both executable and source file.

...
add_executable(dijkstra src/dijkstra.cpp)

target_link_libraries(dijkstra
${catkin_LIBRARIES}
)
...

Compile your workspace, source your .bashrc and you're good to go.

Try this. Change name of your main source code file algorithm_1.cpp to dijkstra.cpp. Use the same name for both executable and source file.file which is a convention used by many people. It doesn't have to be the same as you can see here.

...
add_executable(dijkstra src/dijkstra.cpp)

target_link_libraries(dijkstra
${catkin_LIBRARIES}
)
...

Compile your workspace, source your .bashrc and you're good to go.

Try this. Change name of your main source code file algorithm_1.cpp to dijkstra.cpp. Use the same name for both executable and source file which is a convention used by many people. It doesn't They don't have to be the same as you can see here.

...
add_executable(dijkstra src/dijkstra.cpp)

target_link_libraries(dijkstra
${catkin_LIBRARIES}
)
...

Compile your workspace, source your .bashrc and you're good to go.

Try this. Change name of your main source code file algorithm_1.cpp to dijkstra.cpp. Use the same name for both executable and source file which is a convention used by many people. They don't have to be the same as you can see here.

...
add_executable(dijkstra src/dijkstra.cpp)

target_link_libraries(dijkstra
${catkin_LIBRARIES}
)
...

Compile your workspace, source your .bashrc and you're good to go.

Try this. Change name of your main source code file algorithm_1.cpp to dijkstra.cpp. Use the same name for both executable and source file which is a convention used by many people. They Although they don't have to be same as you can see here.

...
add_executable(dijkstra src/dijkstra.cpp)

target_link_libraries(dijkstra
${catkin_LIBRARIES}
)
...

Compile your workspace, source your .bashrc and you're good to go.

Try this. Change name of your main source code file algorithm_1.cpp to dijkstra.cpp. Use the same name for both executable and source file which is a convention used by many people. Although they don't have to be same as you can see here.

...
add_executable(dijkstra src/dijkstra.cpp)

target_link_libraries(dijkstra
${catkin_LIBRARIES}
)
...

Compile your workspace, source your .bashrc and you're good to go.

Also check the CMakeLists.txt given here for other mistakes if you're unable to run your node.

Try this. Change name of your main source code file algorithm_1.cpp to dijkstra.cpp. Use the same name for both executable and source file which is a convention used by many people. Although they don't have to be same as you can see here.

...
add_executable(dijkstra src/dijkstra.cpp)

target_link_libraries(dijkstra
${catkin_LIBRARIES}
)
...

Compile your workspace, source your .bashrc and you're good to go.

Also check the CMakeLists.txt given here for other mistakes if you're still unable to run your node.

Try this. Change name of your main source code file algorithm_1.cpp to dijkstra.cpp. Use the same name for both executable and source file which is a convention used by many people. Although they don't have to be same as you can see here.

...
add_executable(dijkstra src/dijkstra.cpp)

target_link_libraries(dijkstra
${catkin_LIBRARIES}
)
...

Compile your workspace, source your .bashrc and you're good to go.

Also check the CMakeLists.txt given here for other mistakes if you're still unable to run your node.

Change name of your main source code file algorithm_1.cpp to dijkstra.cpp. Use the same name for both executable and source file which is a convention used by many people. Although they don't have to be same as you can see here. So try this:

...
add_executable(dijkstra src/dijkstra.cpp)

target_link_libraries(dijkstra
${catkin_LIBRARIES}
)
...

Compile your workspace, source your .bashrc and you're good to go.

Also check the CMakeLists.txt given here for other mistakes if you're still unable to run your node.