This repository was archived by the owner on Feb 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 54
Try to address #25 unstable frequency #30
Open
versatran01
wants to merge
9
commits into
KumarRobotics:master
Choose a base branch
from
versatran01:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
2fcefc3
various cleanup
versatran01 5cd1079
add a publisher for dt
versatran01 0f06438
fix for timestamp
versatran01 59b2f90
more clean up
versatran01 3786c39
also publishes deviates from realtime
versatran01 ae5231a
follow manual suggestiong using only binary group 1
versatran01 ebdd887
use a weighted average of dev time and ros time to compute message time
versatran01 3b1f7d5
update README and kill ypr
versatran01 bfdd5b3
address part of the review
versatran01 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,73 +1,37 @@ | ||
| cmake_minimum_required(VERSION 2.8.3) | ||
| project(imu_vn_100) | ||
|
|
||
| set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall") | ||
|
|
||
| find_package(catkin REQUIRED COMPONENTS | ||
| roscpp | ||
| sensor_msgs | ||
| diagnostic_updater | ||
| ) | ||
| find_package(Boost REQUIRED) | ||
|
|
||
| catkin_package( | ||
| INCLUDE_DIRS include vncpplib/include | ||
| LIBRARIES imu_vn_100 | ||
| CATKIN_DEPENDS diagnostic_updater roscpp sensor_msgs | ||
| DEPENDS Boost | ||
| ) | ||
|
|
||
| include_directories( | ||
| include | ||
| vncpplib/include | ||
| ${catkin_INCLUDE_DIRS} | ||
| ) | ||
|
|
||
| add_library(imu_vn_100 | ||
| vncpplib/src/arch/linux/vncp_services.c | ||
| vncpplib/src/vndevice.c | ||
| vncpplib/src/vn100.c | ||
| src/imu_vn_100.cpp | ||
| ) | ||
| target_link_libraries(imu_vn_100 | ||
| ${catkin_LIBRARIES} | ||
| ) | ||
| add_dependencies(imu_vn_100 | ||
| ${${PROJECT_NAME}_EXPORTED_TARGETS} | ||
| ${catkin_EXPORTED_TARGETS} | ||
| ) | ||
|
|
||
| add_executable(imu_vn_100_node | ||
| src/imu_vn_100_node.cpp) | ||
| target_link_libraries(imu_vn_100_node | ||
| ${catkin_LIBRARIES} | ||
| imu_vn_100 | ||
| ) | ||
| add_dependencies(imu_vn_100_node | ||
| ${${PROJECT_NAME}_EXPORTED_TARGETS} | ||
| ${catkin_EXPORTED_TARGETS} | ||
| ) | ||
|
|
||
| install(TARGETS imu_vn_100 imu_vn_100_node | ||
| LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} | ||
| RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} | ||
| ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} | ||
| ) | ||
|
|
||
| install(DIRECTORY include/${PROJECT_NAME}/ | ||
| DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION} | ||
| FILES_MATCHING PATTERN "*.h**" | ||
| ) | ||
| if(NOT CMAKE_CXX_STANDARD) | ||
| set(CMAKE_CXX_STANDARD 11) | ||
| endif() | ||
|
|
||
| find_package(catkin REQUIRED COMPONENTS roscpp sensor_msgs diagnostic_updater) | ||
|
|
||
| catkin_package(CATKIN_DEPENDS | ||
| diagnostic_updater | ||
| roscpp | ||
| sensor_msgs) | ||
|
|
||
| add_executable(${PROJECT_NAME}_node | ||
| src/imu_vn_100.cpp | ||
| vncpplib/src/arch/linux/vncp_services.c | ||
| vncpplib/src/vn100.c | ||
| vncpplib/src/vndevice.c) | ||
| target_include_directories(${PROJECT_NAME}_node | ||
| PUBLIC src vncpplib/include ${catkin_INCLUDE_DIRS}) | ||
|
versatran01 marked this conversation as resolved.
|
||
| target_link_libraries(${PROJECT_NAME}_node PUBLIC ${catkin_LIBRARIES}) | ||
|
|
||
| install(TARGETS ${PROJECT_NAME}_node | ||
| LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} | ||
| RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} | ||
| ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}) | ||
|
|
||
| install(FILES vncpplib/include/vn100.h | ||
| vncpplib/include/vncp_services.h | ||
| vncpplib/include/vndevice.h | ||
| vncpplib/include/vn_errorCodes.h | ||
| vncpplib/include/vn_kinematics.h | ||
| vncpplib/include/vn_linearAlgebra.h | ||
| DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION} | ||
| ) | ||
|
|
||
| install(DIRECTORY launch | ||
| DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} | ||
| ) | ||
| vncpplib/include/vncp_services.h | ||
| vncpplib/include/vndevice.h | ||
| vncpplib/include/vn_errorCodes.h | ||
| vncpplib/include/vn_kinematics.h | ||
| vncpplib/include/vn_linearAlgebra.h | ||
| DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}) | ||
|
|
||
| install(DIRECTORY launch DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.