Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
imu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CdF
modules
imu
Commits
e3f248dc
Commit
e3f248dc
authored
4 years ago
by
Paul D'Angio
Browse files
Options
Downloads
Patches
Plain Diff
improved ros_node code organization
parent
c4df9f27
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/ros_node.cpp
+4
-0
4 additions, 0 deletions
src/ros_node.cpp
src/ros_node.h
+1
-0
1 addition, 0 deletions
src/ros_node.h
with
5 additions
and
0 deletions
src/ros_node.cpp
+
4
−
0
View file @
e3f248dc
...
...
@@ -7,6 +7,7 @@
#include
<cmath>
// CONSTRUCTORS
ros_node
::
ros_node
(
driver
*
driver
,
int
argc
,
char
**
argv
)
{
// Create a new driver.
...
...
@@ -70,6 +71,7 @@ ros_node::~ros_node()
delete
ros_node
::
m_driver
;
}
// ROS
void
ros_node
::
spin
()
{
// Spin.
...
...
@@ -79,6 +81,7 @@ void ros_node::spin()
ros_node
::
deinitialize_driver
();
}
// METHODS
void
ros_node
::
deinitialize_driver
()
{
try
...
...
@@ -92,6 +95,7 @@ void ros_node::deinitialize_driver()
}
}
// CALLBACKS
void
ros_node
::
data_callback
(
driver
::
data
data
)
{
// Create accelerometer message.
...
...
This diff is collapsed.
Click to expand it.
src/ros_node.h
+
1
−
0
View file @
e3f248dc
...
...
@@ -56,6 +56,7 @@ private:
/// \brief deinitialize_driver Deinitializes the driver.
void
deinitialize_driver
();
// CALLBACKS
/// \brief data_callback The callback function for when new data is available.
/// \param data The latest data read from the MPU9250/AK8963.
void
data_callback
(
driver
::
data
data
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment