Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lrs_pyutil
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lrs
lrs_pyutil
Commits
33bb83af
Commit
33bb83af
authored
10 years ago
by
Tommy Persson
Browse files
Options
Downloads
Patches
Plain Diff
lqwtf.py added
parent
fbe7c11c
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/lqwtf.py
+31
-0
31 additions, 0 deletions
src/lqwtf.py
src/pyutil/__init__.py
+1
-1
1 addition, 1 deletion
src/pyutil/__init__.py
src/pyutil/wtf.py
+32
-0
32 additions, 0 deletions
src/pyutil/wtf.py
with
64 additions
and
1 deletion
src/lqwtf.py
0 → 100755
+
31
−
0
View file @
33bb83af
#!/usr/bin/env python
from
pyutil.wtf
import
*
def
check_lidar
(
ns
):
nodes
=
[
"
scantocloud
"
]
check_nodes
(
"
LIDAR
"
,
ns
,
nodes
)
def
check_basic_lq
(
ns
):
nodes
=
[
"
dwdb
"
,
"
quadconn
"
,
"
quadexec
"
,
"
scanserver
"
,
"
uav_laser_frame_publisher
"
,
"
quadexec
"
]
check_nodes
(
"
BASIC LQ
"
,
ns
,
nodes
)
def
check
(
ns
):
check_basic_lq
(
ns
)
check_lidar
(
ns
)
check_tst
(
ns
)
check_delegation
(
ns
)
check_task_planning
(
ns
)
check_motion_planning
(
ns
)
if
__name__
==
'
__main__
'
:
ns
=
rospy
.
get_namespace
()
check
(
ns
)
# ping("/ground/cserver")
# rosnode.rosnode_ping_all(True)
This diff is collapsed.
Click to expand it.
src/pyutil/__init__.py
+
1
−
1
View file @
33bb83af
__all__
=
[
"
tfutil
"
,
"
fipa
"
,
"
consutil
"
,
"
rautil
"
,
"
wdbutil
"
,
"
geoconv
"
,
"
imutil
"
]
__all__
=
[
"
tfutil
"
,
"
fipa
"
,
"
consutil
"
,
"
rautil
"
,
"
wdbutil
"
,
"
geoconv
"
,
"
imutil
"
,
"
wtf
"
]
This diff is collapsed.
Click to expand it.
src/pyutil/wtf.py
0 → 100644
+
32
−
0
View file @
33bb83af
import
rospy
import
rosnode
def
ping
(
functionality
,
name
):
res
=
rosnode
.
rosnode_ping
(
name
,
max_count
=
1
,
verbose
=
False
)
if
res
:
print
functionality
,
"
-
"
,
name
,
"
: OK
"
else
:
print
functionality
,
"
-
"
,
name
,
"
: Could not ping
"
def
check_nodes
(
functionality
,
ns
,
nodes
):
for
nd
in
nodes
:
ping
(
functionality
,
ns
+
nd
)
def
check_delegation
(
ns
):
nodes
=
[
"
interface
"
,
"
bidder
"
,
"
cserver
"
,
"
delegationagent
"
,
"
queryserver
"
,
"
qparamserver
"
,
"
resourceagent
"
,
"
unitprioritizer
"
]
check_nodes
(
"
DELEGATION
"
,
ns
,
nodes
)
def
check_tst
(
ns
):
nodes
=
[
"
tstfactory
"
,
"
tstuiserver
"
]
check_nodes
(
"
TST
"
,
ns
,
nodes
)
def
check_task_planning
(
ns
):
nodes
=
[
"
tfpop
"
,
"
plantotst
"
]
check_nodes
(
"
TASK PLANNING
"
,
ns
,
nodes
)
def
check_motion_planning
(
ns
):
nodes
=
[
"
mpinfo
"
,
"
mplanner
"
]
check_nodes
(
"
MOTION PLANNING
"
,
ns
,
nodes
)
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