mirror of
https://github.com/nasa/trick.git
synced 2024-12-26 00:01:09 +00:00
4c471eb32d
Introducing a pubish and subscribe example sim. The publisher includes a ROS msg file that is processed by ROS into a header file. refs #190
21 lines
663 B
Makefile
21 lines
663 B
Makefile
|
|
ROS_HOME = /opt/ros/jade
|
|
TRICK_ICG_EXCLUDE += :${ROS_HOME}
|
|
|
|
TRICK_CFLAGS += -I../models -I${ROS_HOME}/include
|
|
TRICK_CXXFLAGS += -I../models -I${ROS_HOME}/include -Wno-shadow -Wno-unused-parameter
|
|
|
|
TRICK_EXEC_LINK_LIBS += -L${ROS_HOME}/lib -lroscpp -lrosconsole -lroscpp_serialization
|
|
|
|
$(MODEL_cpp_OBJ) : | ../models/ros_comm/Num.h
|
|
|
|
MESSAGE_FILES = ../models/ros_comm/Num.h
|
|
|
|
${MESSAGE_FILES} : %.h : %.msg
|
|
cd ${<D} && ${ROS_HOME}/lib/gencpp/gen_cpp.py ${<F} -Itrick_msgs:. -Istd_msgs:${ROS_HOME}/share/std_msgs/cmake/../msg -p trick_msgs -o . -e /opt/ros/jade/share/gencpp
|
|
|
|
clean: clean_msg_headers
|
|
|
|
clean_msg_headers:
|
|
rm -f ${HOME}/trick_models/ros_comm/Num.h
|