-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add rawValuesPublisherInterface and related nws and nwc to stream and save raw values #983
Merged
pattacini
merged 3 commits into
robotology:devel
from
valegagge:feature/rawValuesInterface
Oct 28, 2024
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Copyright: (C) 2024 iCub Facility - Istituto Italiano di Tecnologia | ||
# Authors: Jacopo Losi | ||
# CopyPolicy: Released under the terms of the GNU GPL v2.0. | ||
|
||
set(appname fakeRawDataPublisherTester) | ||
file(GLOB conf ${CMAKE_CURRENT_SOURCE_DIR}/conf/*.ini) | ||
yarp_install(FILES ${conf} DESTINATION ${ICUB_CONTEXTS_INSTALL_DIR}/${appname}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[GENERAL] | ||
robotname fakedevicetest | ||
period 1.0 | ||
portprefix /raw_data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<portscope rows="1" columns="1" carrier="mcast"> | ||
<plot gridx="0" | ||
gridy="0" | ||
hspan="1" | ||
vspan="1" | ||
minval="-20" | ||
maxval="256" | ||
title="Raw Valeus Test Plot" | ||
bgcolor="LightSlateGrey"> | ||
<graph remote="/fakedevicetest/raw_data/rawdata:o" | ||
index="1" | ||
color="purple" | ||
title="raw value 1" | ||
type="lines" | ||
size="3" /> | ||
<graph remote="/fakedevicetest/raw_data/rawdata:o" | ||
index="2" | ||
color="pink" | ||
title="raw value 2" | ||
type="lines" | ||
size="3" /> | ||
<graph remote="/fakedevicetest/raw_data/rawdata:o" | ||
index="3" | ||
color="green" | ||
title="raw value 3" | ||
type="lines" | ||
size="3" /> | ||
<graph remote="/fakedevicetest/raw_data/rawdata:o" | ||
index="4" | ||
color="orange" | ||
title="raw value 4" | ||
type="lines" | ||
size="3" /> | ||
</plot> | ||
</portscope> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's see if @traversaro has a better solution for this one we found
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the problem is that the thrift classes do not have any namespace (that is true also for generated public classes that are just defined in the global namespace). Since robotology/yarp#2028, the include should be placed in
include/<namespace>
, so if we use theiCub
namespace in thrift files we should be good to go and there will be no need to specifiy additional include directories as done here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See https://github.com/robotology/icub-main/pull/983/files#r1793662892 .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's allowed by the automation, I'd like to segregate generated files in dedicated directories.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, in that case you just need to have two directories passed as
BUILD_INTERFACE
interface, and only one install (I am not a big fan of using thrift-generated files in public interfaces due to this), something like:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per discussion w/ @valegagge and @Nicogene I'm gonna fix the CMakeLists.txt as proposed by @traversaro. Thus also the generated files should not be together with the hand-coded ones.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks heaps!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one thing.
I tried to compile everything but without this line:
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/autogenerated>"
insrc/libraries/iCubDev/CMakeLists.txt
robometry
compilation keeps failing with errors in finding the include: