0
0

More than 3 years have passed since last update.

Franka ローカルでexamplesをビルド・Makefile的

Last updated at Posted at 2021-07-08

https://frankaemika.github.io/libfranka/examples.html のファイルをビルドする

Makefile.simple
INCS=   -I /opt/ros/melodic/include/libfranka -I /usr/include/eigen3

LIBS=   /opt/ros/melodic/lib/libfranka.so -lPocoFoundation -lPocoNet -lpthread

EXES=\
        cartesian_impedance_control\
        communication_test\
        echo_robot_state\
        force_control\
        generate_cartesian_pose_motion\
        generate_cartesian_velocity_motion\
        generate_consecutive_motions\
        generate_elbow_motion\
        generate_joint_position_motion\
        generate_joint_velocity_motion\
        grasp_object\
        joint_impedance_control\
        joint_point_to_point_motion\
        motion_with_control\
        print_joint_poses\
        vacuum_object

OBJS=   $(patsubst %, %.o, $(EXES))
OBJS+=  examples_common.o

define link
$(1): $1.o examples_common.o
        g++ -o $1 $1.o examples_common.o $(LIBS)
endef

all: $(EXES)

$(foreach prog, $(EXES), $(eval $(call link, $(prog))))

.cpp.o:
        g++ $(INCS) -c $<

clean:
        rm -f $(OBJS) $(EXES)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0