Skip to content
This repository was archived by the owner on Dec 1, 2020. It is now read-only.

Commit f88a0cb

Browse files
authored
Merge branch 'develop' into feature/PM-414-make-new-controller-template
2 parents 65a79ee + 0e66ef4 commit f88a0cb

File tree

81 files changed

+353
-356
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+353
-356
lines changed

march_hardware/CMakeLists.txt

Lines changed: 65 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ include_directories(
2727
)
2828

2929
# needed to circumvent LD_LIBRARY_PATH being emptied through ethercat_grant
30-
# in addition to not propagating march_hardware_interface RUNPATH to dependencies, in contrast to RPATH
30+
# in addition to not propagating march_hardware RUNPATH to dependencies, in contrast to RPATH
3131
set(GCC_NEWDTAGS_LINK_FLAGS "-Wl,--disable-new-dtags")
3232
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${GCC_NEWDTAGS_LINK_FLAGS}")
3333

@@ -38,33 +38,49 @@ if(CATKIN_ENABLE_TESTING AND ENABLE_COVERAGE_TESTING)
3838
endif()
3939

4040
add_library(${PROJECT_NAME}
41-
include/${PROJECT_NAME}/EtherCAT/pdo_interface.h
42-
include/${PROJECT_NAME}/EtherCAT/pdo_types.h
43-
include/${PROJECT_NAME}/EtherCAT/sdo_interface.h
44-
include/${PROJECT_NAME}/EtherCAT/slave.h
45-
include/${PROJECT_NAME}/encoder/AbsoluteEncoder.h
46-
include/${PROJECT_NAME}/encoder/Encoder.h
47-
include/${PROJECT_NAME}/encoder/IncrementalEncoder.h
41+
include/${PROJECT_NAME}/encoder/absolute_encoder.h
42+
include/${PROJECT_NAME}/encoder/encoder.h
43+
include/${PROJECT_NAME}/encoder/incremental_encoder.h
4844
include/${PROJECT_NAME}/error/error_type.h
4945
include/${PROJECT_NAME}/error/hardware_exception.h
5046
include/${PROJECT_NAME}/error/motion_error.h
51-
src/EtherCAT/EthercatMaster.cpp
52-
src/EtherCAT/pdo_interface.cpp
53-
src/EtherCAT/sdo_interface.cpp
54-
src/HighVoltage.cpp
55-
src/IMotionCube.cpp
56-
src/IMotionCubeTargetState.cpp
57-
src/Joint.cpp
58-
src/LowVoltage.cpp
59-
src/MarchRobot.cpp
60-
src/PDOmap.cpp
61-
src/PowerDistributionBoard.cpp
62-
src/TemperatureGES.cpp
63-
src/encoder/AbsoluteEncoder.cpp
64-
src/encoder/Encoder.cpp
65-
src/encoder/IncrementalEncoder.cpp
47+
include/${PROJECT_NAME}/ethercat/ethercat_master.h
48+
include/${PROJECT_NAME}/ethercat/pdo_interface.h
49+
include/${PROJECT_NAME}/ethercat/pdo_map.h
50+
include/${PROJECT_NAME}/ethercat/pdo_types.h
51+
include/${PROJECT_NAME}/ethercat/sdo_interface.h
52+
include/${PROJECT_NAME}/ethercat/slave.h
53+
include/${PROJECT_NAME}/imotioncube/actuation_mode.h
54+
include/${PROJECT_NAME}/imotioncube/imotioncube.h
55+
include/${PROJECT_NAME}/imotioncube/imotioncube_state.h
56+
include/${PROJECT_NAME}/imotioncube/imotioncube_target_state.h
57+
include/${PROJECT_NAME}/joint.h
58+
include/${PROJECT_NAME}/march_robot.h
59+
include/${PROJECT_NAME}/power/boot_shutdown_offsets.h
60+
include/${PROJECT_NAME}/power/high_voltage.h
61+
include/${PROJECT_NAME}/power/low_voltage.h
62+
include/${PROJECT_NAME}/power/net_driver_offsets.h
63+
include/${PROJECT_NAME}/power/net_monitor_offsets.h
64+
include/${PROJECT_NAME}/power/power_distribution_board.h
65+
include/${PROJECT_NAME}/temperature/temperature_ges.h
66+
include/${PROJECT_NAME}/temperature/temperature_sensor.h
67+
src/encoder/absolute_encoder.cpp
68+
src/encoder/encoder.cpp
69+
src/encoder/incremental_encoder.cpp
6670
src/error/error_type.cpp
6771
src/error/motion_error.cpp
72+
src/ethercat/ethercat_master.cpp
73+
src/ethercat/pdo_interface.cpp
74+
src/ethercat/pdo_map.cpp
75+
src/ethercat/sdo_interface.cpp
76+
src/imotioncube/imotioncube.cpp
77+
src/imotioncube/imotioncube_target_state.cpp
78+
src/joint.cpp
79+
src/march_robot.cpp
80+
src/power/high_voltage.cpp
81+
src/power/low_voltage.cpp
82+
src/power/power_distribution_board.cpp
83+
src/temperature/temperature_ges.cpp
6884
)
6985

7086
target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} pthread)
@@ -97,32 +113,32 @@ install(DIRECTORY launch
97113
## Add gtest based cpp test target and link libraries
98114
if(CATKIN_ENABLE_TESTING)
99115
catkin_add_gmock(${PROJECT_NAME}_test
100-
test/TestBootShutdownOffsets.cpp
101-
test/TestHighVoltage.cpp
102-
test/TestIMotionCube.cpp
103-
test/TestJoint.cpp
104-
test/TestLowVoltage.cpp
105-
test/TestNetDriverOffsets.cpp
106-
test/TestNetMonitorOffsets.cpp
107-
test/TestPDOmap.cpp
108-
test/TestPowerDistributionBoard.cpp
109-
test/TestRunner.cpp
110-
test/TestSlave.cpp
111-
test/TestTemperatureGES.cpp
112-
test/encoder/TestAbsoluteEncoder.cpp
113-
test/encoder/TestIncrementalEncoder.cpp
114-
test/encoder/TestEncoder.cpp
115-
test/error/test_hardware_exception.cpp
116-
test/error/test_motion_error.cpp
117-
test/mocks/MockAbsoluteEncoder.h
118-
test/mocks/MockEncoder.h
119-
test/mocks/MockIMotionCube.h
120-
test/mocks/MockIncrementalEncoder.h
121-
test/mocks/MockJoint.h
122-
test/mocks/MockPdoInterface.h
123-
test/mocks/MockSdoInterface.h
124-
test/mocks/MockSlave.h
125-
test/mocks/MockTemperatureGES.h
116+
test/encoder/absolute_encoder_test.cpp
117+
test/encoder/encoder_test.cpp
118+
test/encoder/incremental_encoder_test.cpp
119+
test/error/hardware_exception_test.cpp
120+
test/error/motion_error_test.cpp
121+
test/ethercat/pdo_map_test.cpp
122+
test/ethercat/slave_test.cpp
123+
test/imotioncube/imotioncube_test.cpp
124+
test/joint_test.cpp
125+
test/mocks/mock_absolute_encoder.h
126+
test/mocks/mock_encoder.h
127+
test/mocks/mock_imotioncube.h
128+
test/mocks/mock_incremental_encoder.h
129+
test/mocks/mock_joint.h
130+
test/mocks/mock_pdo_interface.h
131+
test/mocks/mock_sdo_interface.h
132+
test/mocks/mock_slave.h
133+
test/mocks/mock_temperature_ges.h
134+
test/power/boot_shutdown_offsets_test.cpp
135+
test/power/high_voltage_test.cpp
136+
test/power/low_voltage_test.cpp
137+
test/power/net_driver_offsets_test.cpp
138+
test/power/net_monitor_offsets_test.cpp
139+
test/power/power_distribution_board_test.cpp
140+
test/temperature/temperature_ges_test.cpp
141+
test/test_runner.cpp
126142
)
127143
target_link_libraries(${PROJECT_NAME}_test ${catkin_LIBRARIES} ${PROJECT_NAME})
128144

march_hardware/include/march_hardware/encoder/AbsoluteEncoder.h renamed to march_hardware/include/march_hardware/encoder/absolute_encoder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#ifndef MARCH_HARDWARE_ABSOLUTE_ENCODER_H
44
#define MARCH_HARDWARE_ABSOLUTE_ENCODER_H
5-
#include "march_hardware/encoder/Encoder.h"
5+
#include "march_hardware/encoder/encoder.h"
66

77
#include <ostream>
88

march_hardware/include/march_hardware/encoder/Encoder.h renamed to march_hardware/include/march_hardware/encoder/encoder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#ifndef MARCH_HARDWARE_ENCODER_H
44
#define MARCH_HARDWARE_ENCODER_H
5-
#include "march_hardware/EtherCAT/pdo_interface.h"
5+
#include "march_hardware/ethercat/pdo_interface.h"
66

77
#include <cmath>
88
#include <cstddef>

march_hardware/include/march_hardware/encoder/IncrementalEncoder.h renamed to march_hardware/include/march_hardware/encoder/incremental_encoder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#ifndef MARCH_HARDWARE_INCREMENTAL_ENCODER_H
44
#define MARCH_HARDWARE_INCREMENTAL_ENCODER_H
5-
#include "march_hardware/encoder/Encoder.h"
5+
#include "march_hardware/encoder/encoder.h"
66

77
#include <ostream>
88

march_hardware/include/march_hardware/EtherCAT/EthercatMaster.h renamed to march_hardware/include/march_hardware/ethercat/ethercat_master.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <mutex>
99
#include <condition_variable>
1010

11-
#include <march_hardware/Joint.h>
11+
#include <march_hardware/joint.h>
1212

1313
namespace march
1414
{

march_hardware/include/march_hardware/EtherCAT/pdo_interface.h renamed to march_hardware/include/march_hardware/ethercat/pdo_interface.h

File renamed without changes.

march_hardware/include/march_hardware/PDOmap.h renamed to march_hardware/include/march_hardware/ethercat/pdo_map.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright 2019 Project March.
22
#ifndef MARCH_HARDWARE_PDOMAP_H
33
#define MARCH_HARDWARE_PDOMAP_H
4-
#include "march_hardware/EtherCAT/sdo_interface.h"
4+
#include "march_hardware/ethercat/sdo_interface.h"
55

66
#include <string>
77
#include <utility>

march_hardware/include/march_hardware/EtherCAT/pdo_types.h renamed to march_hardware/include/march_hardware/ethercat/pdo_types.h

File renamed without changes.

march_hardware/include/march_hardware/EtherCAT/sdo_interface.h renamed to march_hardware/include/march_hardware/ethercat/sdo_interface.h

File renamed without changes.

march_hardware/include/march_hardware/EtherCAT/slave.h renamed to march_hardware/include/march_hardware/ethercat/slave.h

File renamed without changes.

0 commit comments

Comments
 (0)