trick/trick_sims/ROS/SIM_ros_publisher/S_overrides.mk
Alex Lin 4c471eb32d Introduce Trick ROS publish/subscribe examples.
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
2016-02-26 09:39:42 -06:00

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