Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
LaVizu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
behaviors-ai-public
LaVizu
Commits
bd45e59f
Commit
bd45e59f
authored
Jun 03, 2019
by
Dorian Goepp
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dgoepp/fixes#1' into 'master'
Dgoepp/fixes#1 See merge request behaviors-ai/the_dashboard!5
parents
b08c0181
00c71891
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
src/Board.js
src/Board.js
+6
-6
src/VideoStream/index.js
src/VideoStream/index.js
+7
-5
No files found.
src/Board.js
View file @
bd45e59f
...
...
@@ -5,12 +5,12 @@ import FlexLayout, {Actions} from "flexlayout-react";
import
{
decorate
,
observable
}
from
"
mobx
"
// The React Components that are going into tabs
import
{
VideoStream
,
DemoVideoStream
}
from
"
./VideoStream
"
import
{
RosLineChart
,
DemoLineChart
}
from
"
./LineChart
"
import
{
RosHGauge
}
from
"
./HorizontalGauge
"
import
{
RosMemoryRanked
,
DemoMemoryRanked
}
from
'
./MemoryRanked
'
import
{
RosInteractionTrace
,
DemoInteractionTrace
}
from
'
./InteractionTrace
'
import
{
RosLatestInteraction
,
DemoLatestInteraction
}
from
'
./LatestInteraction
'
import
{
RosMood
,
DemoMood
}
from
'
./Mood
'
import
{
RosLineChart
,
DemoLineChart
}
from
"
./LineChart
"
import
{
RosHGauge
}
from
"
./HorizontalGauge
"
import
{
RosMemoryRanked
,
DemoMemoryRanked
}
from
'
./MemoryRanked
'
import
{
RosInteractionTrace
,
DemoInteractionTrace
}
from
'
./InteractionTrace
'
import
{
RosLatestInteraction
,
DemoLatestInteraction
}
from
'
./LatestInteraction
'
import
{
RosMood
,
DemoMood
}
from
'
./Mood
'
import
DemoString
from
'
./String
'
// get the default configuration for the layout
...
...
src/VideoStream/index.js
View file @
bd45e59f
...
...
@@ -13,11 +13,13 @@ class VideoStream extends Component {
url
:
hasUrl
?
this
.
props
.
url
:
this
.
defaultImage
};
this
.
props
.
ros
.
getTopics
(
function
(
infos
){
if
(
undefined
!==
infos
.
topics
.
find
(
elem
=>
elem
===
this
.
topic
))
{
this
.
setState
({
url
:
'
http://localhost:8081/stream?topic=
'
+
this
.
topic
});
}
}.
bind
(
this
))
if
(
this
.
props
.
ros
)
{
this
.
props
.
ros
.
getTopics
(
function
(
infos
){
if
(
undefined
!==
infos
.
topics
.
find
(
elem
=>
elem
===
this
.
topic
))
{
this
.
setState
({
url
:
'
http://localhost:8081/stream?topic=
'
+
this
.
topic
});
}
}.
bind
(
this
))
}
}
handleSettingsChange
(
event
)
{
...
...
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