Revision 144137a1
ID | 144137a12c1437f71d49b144279823dc836cb14b |
Got motor control working with scoutsim
Behaviors can now use the MotorControl class to change the speed of the motors in the simulator. The simulator correctly handles the command.
At the moment, the set_motors command is limited to 'scout1'. We should look into prefixes to specify which scout (scout1, scout2, etc) each behavior should command.
Also changed alex_behavior to be a good demonstration of the motors.
scout/scoutsim/CMakeLists.txt | ||
---|---|---|
32 | 32 |
rosbuild_link_boost(scoutsim_node thread) |
33 | 33 |
target_link_libraries(scoutsim_node ${wxWidgets_LIBRARIES}) |
34 | 34 |
|
35 |
|
|
36 |
include($ENV{ROS_ROOT}/core/rosbuild/FindPkgConfig.cmake) |
|
37 |
include_directories(${MOTORS_INCLUDE_DIRS}) |
|
38 |
link_directories(${MOTORS_LIBRARY_DIRS}) |
|
39 |
target_link_libraries(scoutsim_node ${MOTORS_LIBRARIES}) |
|
40 |
|
|
41 |
target_link_libraries(scoutsim_node motors) |
|
42 |
|
|
43 | 35 |
# @TODO are these useful or necessary? Determine; add as needed |
44 | 36 |
#rosbuild_add_executable(turtle_teleop_key tutorials/teleop_turtle_key.cpp) |
45 | 37 |
#rosbuild_add_executable(draw_square tutorials/draw_square.cpp) |
Also available in: Unified diff