Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
iri_mvbluefox3_camera_driver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
labrobotica
ros
sensors
mono_cameras
iri_mvbluefox3_camera_driver
Commits
96308a1f
Commit
96308a1f
authored
7 years ago
by
Angel Santamaria-Navarro
Browse files
Options
Downloads
Plain Diff
merge
parents
dbfd4a7d
2dd1858d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mvbluefox3_camera_driver.cpp
+4
-4
4 additions, 4 deletions
src/mvbluefox3_camera_driver.cpp
with
4 additions
and
4 deletions
src/mvbluefox3_camera_driver.cpp
+
4
−
4
View file @
96308a1f
...
...
@@ -302,10 +302,10 @@ void Mvbluefox3CameraDriver::GetROSImage(const int &ncam, sensor_msgs::Image &im
encoding
=
"8UC1"
;
switch
(
bp
)
{
case
1
:
encoding
=
"mono8"
;
break
;
case
1
:
encoding
=
"mono8"
;
break
;
// FIX: Should be 8UC1 but changed because cv_bridge cannot convert formats
case
2
:
encoding
=
"8UC2"
;
break
;
case
3
:
encoding
=
"rgb8"
;
break
;
case
4
:
encoding
=
"
8UC4
"
;
break
;
case
3
:
encoding
=
"rgb8"
;
break
;
// FIX: Should be 8UC3 but changed because cv_bridge cannot convert formats
case
4
:
encoding
=
"
rgba8
"
;
break
;
// FIX: Should be 8UC4 but changed because cv_bridge cannot convert formats
default:
ROS_WARN
(
"Invalid depth. Depth not implemented here."
);
break
;
}
}
...
...
@@ -314,7 +314,7 @@ void Mvbluefox3CameraDriver::GetROSImage(const int &ncam, sensor_msgs::Image &im
encoding
=
"16UC1"
;
switch
(
bp
)
{
case
1
:
encoding
=
"
16UC1
"
;
break
;
case
1
:
encoding
=
"
mono16
"
;
break
;
// FIX: Should be 16UC1 but changed because cv_bridge cannot convert formats
case
2
:
encoding
=
"16UC2"
;
break
;
case
3
:
encoding
=
"16UC3"
;
break
;
case
4
:
encoding
=
"16UC4"
;
break
;
...
...
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