Project

General

Profile

Revision ce559b91

IDce559b91dc2723f09fa0c381cd4ebff86d4f8e10

Added by Alex Zirbel over 12 years ago

Fixed the encoders node.

Simplified the node to only advertise a single service - a query allows other nodes to find out, simply, the total distance traveled. The node also only handles plain encoder ticks, because distance and such computation should be done on the library end.

View differences:

scout/encoders/CMakeLists.txt
17 17
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
18 18

  
19 19
#uncomment if you have defined messages
20
rosbuild_genmsg()
20
#rosbuild_genmsg()
21 21
#uncomment if you have defined services
22 22
rosbuild_gensrv()
23 23

  
......
29 29
#rosbuild_add_executable(example examples/example.cpp)
30 30
#target_link_libraries(example ${PROJECT_NAME})
31 31

  
32
rosbuild_add_executable(motors_node src/motors.cpp)
32
rosbuild_add_executable(encoders_node src/encoders.cpp)

Also available in: Unified diff