Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Base Station ROS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Larkin Heintzman
Base Station ROS
Commits
9f1b5722
Commit
9f1b5722
authored
Feb 08, 2022
by
Larkin Heintzman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
image tweaks and clean up
parent
7a6c749e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
7 deletions
+11
-7
image_test.launch
base_station/launch/image_test.launch
+1
-0
remote_image_test.launch
base_station/launch/remote_image_test.launch
+4
-3
remote_vehicle.launch
base_station/launch/remote_vehicle.launch
+1
-1
remote_vehicle_yeats.launch
base_station/launch/remote_vehicle_yeats.launch
+1
-1
imageNode.py
base_station/scripts/imageNode.py
+4
-2
No files found.
base_station/launch/image_test.launch
View file @
9f1b5722
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
<include file="$(find base_station)/launch/remote_image_test.launch">
<include file="$(find base_station)/launch/remote_image_test.launch">
<arg name="machine_name" value="nerudaKube"/>
<arg name="machine_name" value="nerudaKube"/>
<arg name="machine_id" value="0"/>
<arg name="machine_id" value="0"/>
<arg name="video_stream_provider" value="99"/>
</include>
</include>
</launch>
</launch>
base_station/launch/remote_image_test.launch
View file @
9f1b5722
...
@@ -7,10 +7,11 @@
...
@@ -7,10 +7,11 @@
<group ns="$(arg machine_name)">
<group ns="$(arg machine_name)">
<!-- run viewer on base station laptop -->
<!-- run viewer on base station laptop -->
<node name="imageNode" pkg="base_station" type="imageNode.py">
<node name="imageNode" pkg="base_station" type="imageNode.py"
machine="$(arg machine_name)"
>
<param name="visualize" type="bool" value="false"/>
<param name="visualize" type="bool" value="false"/>
<param name="save" type="bool" value="true"/>
<param name="save" type="bool" value="true"/>
<param name="folderName" type="string" value="/home/ssher/imageDump"/>
<!-- from home dir -->
<param name="folderName" type="string" value="imageNFS"/>
</node>
</node>
<!-- run webcam stream on remote node -->
<!-- run webcam stream on remote node -->
...
@@ -18,7 +19,7 @@
...
@@ -18,7 +19,7 @@
<arg name="camera_name" default="usb_camera" />
<arg name="camera_name" default="usb_camera" />
<!-- video_stream_provider can be a number as a video device or a url of a video stream -->
<!-- video_stream_provider can be a number as a video device or a url of a video stream -->
<arg name="video_stream_provider" default="
0
" />
<arg name="video_stream_provider" default="
99
" />
<!-- set camera fps to -->
<!-- set camera fps to -->
<arg name="set_camera_fps" default="30" />
<arg name="set_camera_fps" default="30" />
<!-- set buffer queue size of frame capturing to -->
<!-- set buffer queue size of frame capturing to -->
...
...
base_station/launch/remote_vehicle.launch
View file @
9f1b5722
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
<!-- </group> -->
<!-- </group> -->
<!-- gui interface and imaging nodes -->
<!-- gui interface and imaging nodes -->
<node pkg="dji_osdk_ros" type="image
_activation.py" name="image_a
ctivation" output="screen" machine="$(arg machine_name)"/>
<node pkg="dji_osdk_ros" type="image
Activation.py" name="imageA
ctivation" output="screen" machine="$(arg machine_name)"/>
<node pkg="database_tools" type="sqlite_upload.py" name="sql_uploader"/>
<node pkg="database_tools" type="sqlite_upload.py" name="sql_uploader"/>
<node name="image_handler" pkg="database_tools" type="image_handler.py"/>
<node name="image_handler" pkg="database_tools" type="image_handler.py"/>
...
...
base_station/launch/remote_vehicle_yeats.launch
View file @
9f1b5722
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
<!-- </group> -->
<!-- </group> -->
<!-- gui interface and imaging nodes -->
<!-- gui interface and imaging nodes -->
<node pkg="bus_driver" type="image
_activation.py" name="image_a
ctivation" output="screen" machine="$(arg machine_name)"/>
<node pkg="bus_driver" type="image
Activation.py" name="imageA
ctivation" output="screen" machine="$(arg machine_name)"/>
<node pkg="database_tools" type="sqlite_upload_yeats.py" name="sql_uploader"/>
<node pkg="database_tools" type="sqlite_upload_yeats.py" name="sql_uploader"/>
<node name="image_handler" pkg="database_tools" type="image_handler.py"/>
<node name="image_handler" pkg="database_tools" type="image_handler.py"/>
<!-- <node pkg="bus_driver" type="poseFeedbackConversion.py" name="poseFeedbackConversion" output="screen" machine="$(arg machine_name)">
<!-- <node pkg="bus_driver" type="poseFeedbackConversion.py" name="poseFeedbackConversion" output="screen" machine="$(arg machine_name)">
...
...
base_station/scripts/imageNode.py
View file @
9f1b5722
...
@@ -42,11 +42,13 @@ def main():
...
@@ -42,11 +42,13 @@ def main():
# print ("File exist")
# print ("File exist")
if
windowFlag
:
if
windowFlag
:
cv2
.
imshow
(
"image window"
,
iv
.
image
)
cv2
.
imshow
(
"image window"
,
iv
.
image
)
rospy
.
loginfo
(
"publishing image to window seq: "
+
iv
.
seq
)
if
saveFlag
:
if
saveFlag
:
cv2
.
imwrite
(
folderName
+
"/camera_image_{seq}.jpeg"
.
format
(
seq
=
iv
.
seq
),
iv
.
image
)
cv2
.
imwrite
(
"/home/"
+
getpass
.
getuser
()
+
"/"
folderName
+
"/camera_image_{seq}.jpeg"
.
format
(
seq
=
iv
.
seq
),
iv
.
image
)
rospy
.
loginfo
(
"saving image to folder: home-> "
+
folderName
+
"-> camera_image_{seq}.jpeg"
.
format
(
seq
=
iv
.
seq
)
+
" seq: "
+
str
(
iv
.
seq
))
cv2
.
waitKey
(
10
)
cv2
.
waitKey
(
10
)
else
:
else
:
print
(
"File not exist
"
)
rospy
.
loginfo
(
"camera dir missing!
"
)
# cv2.destroyAllWindows()
# cv2.destroyAllWindows()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment