Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Robomaster_pi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Emil Harlan
Robomaster_pi
Commits
89e131dd
Commit
89e131dd
authored
1 year ago
by
Emil Harlan
Browse files
Options
Downloads
Patches
Plain Diff
a
parent
bee0e819
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
robomaster_pi/IMU.py
+0
-1
0 additions, 1 deletion
robomaster_pi/IMU.py
robomaster_pi/conn_odom.py
+0
-2
0 additions, 2 deletions
robomaster_pi/conn_odom.py
with
0 additions
and
3 deletions
robomaster_pi/IMU.py
+
0
−
1
View file @
89e131dd
...
@@ -22,7 +22,6 @@ class ImuPublisher(Node):
...
@@ -22,7 +22,6 @@ class ImuPublisher(Node):
self
.
msg
.
linear_acceleration
.
x
=
acc_x
self
.
msg
.
linear_acceleration
.
x
=
acc_x
self
.
msg
.
linear_acceleration
.
y
=
acc_y
self
.
msg
.
linear_acceleration
.
y
=
acc_y
self
.
publisher_
.
publish
(
self
.
msg
)
self
.
publisher_
.
publish
(
self
.
msg
)
self
.
get_logger
().
info
(
'
Publishing: x
'
%
self
.
msg
.
linear_acceleration
.
x
)
...
...
This diff is collapsed.
Click to expand it.
robomaster_pi/conn_odom.py
+
0
−
2
View file @
89e131dd
...
@@ -28,7 +28,6 @@ class OdometryPublisher(Node):
...
@@ -28,7 +28,6 @@ class OdometryPublisher(Node):
def
sub_attitude_info_handler
(
self
,
attitude_info
):
def
sub_attitude_info_handler
(
self
,
attitude_info
):
self
.
yaw
,
pitch
,
roll
=
attitude_info
self
.
yaw
,
pitch
,
roll
=
attitude_info
print
(
"
chassis attitude: yaw:{0}, pitch:{1}, roll:{2}
"
.
format
(
self
.
yaw
,
pitch
,
roll
))
...
@@ -37,7 +36,6 @@ class OdometryPublisher(Node):
...
@@ -37,7 +36,6 @@ class OdometryPublisher(Node):
def
sub_position_handler
(
self
,
position_info
):
def
sub_position_handler
(
self
,
position_info
):
self
.
x
,
self
.
y
,
self
.
z
=
position_info
self
.
x
,
self
.
y
,
self
.
z
=
position_info
print
(
"
chassis position: x:{0}, y:{1}, z:{2}
"
.
format
(
self
.
x
,
self
.
y
,
self
.
yaw
))
self
.
publish_odometry
()
self
.
publish_odometry
()
self
.
publish_transform
()
self
.
publish_transform
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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