Difference between revisions of "Adapting SyRoTek Intro to ROS Code"
From wikidb
m (Edc moved page Twist Motion to Adapting SyRoTek Intro to ROS Code) |
(→MathJax) |
||
Line 11: | Line 11: | ||
* [http://www.colorado.edu/physics/phys4610/phys4610_sp15/PHYS4610_sp15/Home_files/LaTeXSymbols.pdf LeTeX Symbols] | * [http://www.colorado.edu/physics/phys4610/phys4610_sp15/PHYS4610_sp15/Home_files/LaTeXSymbols.pdf LeTeX Symbols] | ||
* [http://meta.math.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference Tutorial] | * [http://meta.math.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference Tutorial] | ||
+ | |||
+ | = Code Download = | ||
+ | == PID == | ||
+ | |||
+ | * [https://syrotek.felk.cvut.cz/about/code download] | ||
+ | |||
+ | tar xzf dem_pid.tar.gz | ||
+ | |||
+ | == Dead Reckoning == | ||
+ | |||
+ | Got it from the SyRoTek lesson web pages. | ||
+ | |||
+ | = Setting up the project = | ||
+ | |||
+ | cd /home/eepp/catkin_ws_indigo/src | ||
+ | |||
+ | catkin_create_pkg syrotek roscpp rospy std_msgs | ||
+ | |||
+ | cd .. | ||
+ | |||
+ | catkin_make | ||
+ | |||
+ | emacs CMakeList.txt | ||
+ | add the following to the end | ||
+ | # for DeadReckoning | ||
+ | set (SRCS1 ${SRCS1} src/myPoint.cpp) | ||
+ | set (SRCS1 ${SRCS1} src/node_pid.cpp) | ||
+ | set (SRCS1 ${SRCS1} src/pid.cpp) | ||
+ | set (SRCS2 ${SRCS2} src/node_deadReckoningI.cpp) | ||
+ | set (SRCS2 ${SRCS2} src/deadReckoningI.cpp) | ||
+ | include_directories(include ${catkin_INCLUDE_DIRS}) | ||
+ | add_executable(cmd ${SRCS1}) | ||
+ | target_link_libraries(cmd ${catkin_LIBRARIES}) | ||
+ | add_executable(deadReckoningReg ${SRCS2}) | ||
+ | target_link_libraries(deadReckoningReg ${catkin_LIBRARIES}) | ||
+ | |||
+ | # for PID | ||
+ | add_executable(pid ${SRCS1}) | ||
+ | target_link_libraries(pid ${catkin_LIBRARIES}) | ||
+ | add_dependencies(pid beginner_tutorials_generate_message_cpp) |
Revision as of 17:20, 11 May 2016
References
MathJax
Code Download
PID
tar xzf dem_pid.tar.gz
Dead Reckoning
Got it from the SyRoTek lesson web pages.
Setting up the project
cd /home/eepp/catkin_ws_indigo/src catkin_create_pkg syrotek roscpp rospy std_msgs cd .. catkin_make
emacs CMakeList.txt
add the following to the end
# for DeadReckoning set (SRCS1 ${SRCS1} src/myPoint.cpp) set (SRCS1 ${SRCS1} src/node_pid.cpp) set (SRCS1 ${SRCS1} src/pid.cpp) set (SRCS2 ${SRCS2} src/node_deadReckoningI.cpp) set (SRCS2 ${SRCS2} src/deadReckoningI.cpp) include_directories(include ${catkin_INCLUDE_DIRS}) add_executable(cmd ${SRCS1}) target_link_libraries(cmd ${catkin_LIBRARIES}) add_executable(deadReckoningReg ${SRCS2}) target_link_libraries(deadReckoningReg ${catkin_LIBRARIES}) # for PID add_executable(pid ${SRCS1}) target_link_libraries(pid ${catkin_LIBRARIES}) add_dependencies(pid beginner_tutorials_generate_message_cpp)