Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Semesterprojekt Modulbasiertes Testen
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Jonas Trappe
Semesterprojekt Modulbasiertes Testen
Commits
3952f462
Commit
3952f462
authored
5 years ago
by
Daniel Christoph
Browse files
Options
Downloads
Patches
Plain Diff
Replace location_monitor_node.py
parent
ed4e1523
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sim/location_monitor/scripts/location_monitor_node.py
+4
-1
4 additions, 1 deletion
src/sim/location_monitor/scripts/location_monitor_node.py
with
4 additions
and
1 deletion
src/sim/location_monitor/scripts/location_monitor_node.py
+
4
−
1
View file @
3952f462
#!/usr/bin/env python
import
math
import
gc
import
rospy
import
re
import
array
...
...
@@ -199,7 +200,8 @@ def callback(msg):
print
(
"
BotX:
"
+
str
(
botx
))
print
(
"
BotY:
"
+
str
(
boty
))
tuto
=
Tutorial
()
tuto
.
show_gazebo_models
(
botx
,
boty
)
tuto
.
show_gazebo_models
(
botx
,
boty
)
gc
.
collect
()
...
...
@@ -207,6 +209,7 @@ def main():
rospy
.
init_node
(
'
location_monitor
'
)
#Node in gang bringen
try
:
rospy
.
Subscriber
(
"
/odom
"
,
Odometry
,
callback
)
#Koordinaten des bots werden durch /odom geschickt und an callback gesendet
gc
.
collect
()
rospy
.
spin
()
except
rospy
.
ROSInterruptException
:
pass
...
...
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