I am using Veins to do some Mobile Edge Computing simulations. To improve the visual effect, I am trying to show real time data of some nodes. For example, my application will return the communication delay in real time. In the Qtenv of Veins, I want to show the delay values in a text box just above the node icon. How to realize that? Or in which documentation can I get some help? Any advice will be appreciated!
Setting a node's Display String (specifically, its t tag) should do exactly that. See https://omnetpp.org/doc/omnetpp/manual/#cha:display-strings for the full documentation.
Related
I am new to Here-API and have been struggling for a couple of days. I want to achieve something like this but a bit cleaner. I do not want to plot the point on the map. All I want is to retrieve the speed limit. I have tried a couple of things like this, this. A humble request to please add demo get requests and not just the procedure.
Note: I only have an API Key, I am not looking for android/ios code. Just a demo Get request should be fine. I do not have app-code, app-id as I have a freemium subscription.
The easiest way to find out what you want to know is to watch what happens when you input coordinates and press the Load button.
Using the Chrome browser, log in and go to the page.
Select Menu > More Tools > Developer Tools.
Click Network at the top of the screen.
Type in street coordinates and press Load.
What you see on the right side are the queries and results. The one you're interested in begins with:
https://reverse.geocoder.api.here.com/6.2/reversegeocode.json? [continues]
Look at the return value of that call to get your results. The other queries are for the graphical display, so you don't need those.
I have a stack of DICOM coronal images where I have used the Image Position (Patient)(0020,0032) tag to sort the images in correct order.
However, the stack also contains an "overview" image showing how the coronal slices where generated from an axial stack - see attachment.
Obviously I want to automatically skip this overview image when sorting the stack - does anyone know how to utilize DICOM tags (which?) to distinguish this one from the rest of the stack?
Sorting on Image Position (Patient)(0020,0032) seems correct.
Sorting on other tags like:
(0008,0012) Instance Creation Date and (0008,0013) Instance Creation Time
(0008,0022) Acquisition Date and (0008,0032) Acquisition Time
may not work. Technician may acquire intermediate images afterward if missing in earlier scan sequence.
(0020,0012) Acquisition Number and (0020,0013) Instance Number may not work for same reason.
So, tag you choose for sorting looks correct.
Now, images you are interested in are "AXIAL" and you want to skip "OVERVIEW" images from stacking.
Well, I am not sure if "OVERVIEW" is correct term. Do you mean Topogram/Scout/Scanogram/Localizer/Patient Protocol or something? Anyway, we will continue with your term.
Check the (0008,0008) Image Type attribute. For "AXIAL" images, it should contain value "AXIAL" generally at third position. Something like following:
ORIGINAL\PRIMARY\AXIAL
OR
DERIVED\SECONDARY\AXIAL
For "OVERVIEW" images, this either will not present or it will be different ("LOCALIZER" most probably assuming CT Image).
Please note that only first two values are mandatory. Values beyond that are optional.
Reference:
ftp://dicom.nema.org/MEDICAL/dicom/2016a/output/chtml/part03/sect_C.7.6.html#sect_C.7.6.1.1.2
https://dicom.innolitics.com/ciods/ct-image/ct-image/00080008
ftp://dicom.nema.org/MEDICAL/dicom/2016a/output/chtml/part03/sect_C.8.16.html#table_C.8-129
Another option which might be more reliable than the Image Type attribute is to check the Image Orientation Patient (0020,0037) since the localizers are usually perpendicular to the stack they are referencing.
I have integrated the turn - turn Navigation with the help of https://github.com/heremaps/here-ios-sdk-examples.
But I am not finding the code as turnManeuver true left -right, speed, locationtname etc as per below image.
I also read this document https://developer.here.com/mobile-sdks/documentation/ios-premium/topics/map-guidance.html. But I am not getting more details of turn left right , speed, time.
Navigation is working fine.
Need to code top bar as write NMAManeuver left, right, name ,distance etc
Need to code bottom bar as speed, time distance
Please provide me some source code which help I can integration as per image. Thanks.
Providing the entire application source for this feature is outside of the scope of StackOverflow. You could request this extension from the HERE team on GitHub. But to get you started, you are already looking in all the right places, it's just a matter of reading a little more documentation.
NMAManeuver left, right, name, distance etc: You can get NMANavigationManager::nextManeuver, the returned NMAManeuver object has all the info you want, e.g. roadName, nextRoadName, distanceFromPreviousManeuver, roadName, ...
speed, time distance: See NMANavigationManager::averageSpeed, timeToArrival, distanceToDestination
More Info:
NMANavigationManager API Reference
NMAManeuver API Reference
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Using JFreeChart to display recent changes in a time series
Before asking, I've been looking for information about my concern with JfreeChart but I have been unable to come out with a solution, so sorry if this question was already posted.
I've programmed an application that receives real-time information from a wireless sensor device (n readings from a temperature sensor every second). To plot this information, I use the JFreeChart libraries, in particular, the DinamicTimeSeriesCollection class.
According with the functionality of this class: "This class is aimed for real-time applications in which we have the ability to append new data and discard the oldest in a pretty fast way (depend on your input data)" (retrieved from JfreeChart: Scroll XYBarChart Horizontally - (chart translation and navigation)), what I need is not to discard the information which has been already plotted. I've seen that I can scroll the graph horizontally by adding a JSlider as it is shown in the aforementioned url. However, I cannot see old values (mostly because they have been replaced).
I'm not sure if I am using the correct class, if there is another libraries like JfreeChart that makes plotting graphs "as easy" or even if there is any trick or method to keep the old values.
Thanks a lot for your time. All the help possible would be appreciated.
Regards
David
A good approach is to store the values that are being received from the device in a 2D listarray (representing x,y coordinates) and pass those points to JFreeChart to be plotted everytime a new value is received. As for panning you can manually set the window with JFreeChart.getXYPlot().get[Domain/Range]axis.set[Upper/Lower]Bounds(double value)
For a schoolassigment me and some buddies of mine are creating an application that is showing many similarities with the C-Mon & Kypski musicvideo on www.oneframeoffame.com. The application is being developed in Flex.
We want to get a random point of a clip, let it pause so a user can mimic the pose and make a snapshot out of it.
What i managed to do is get a random point of the movie. I did this by getting a random value between 0 and de total duration of the movie.
But what i didn't managed to do is let the screen pause on every 24st of a frame. As the movie concist out of 24FPS. It looks like the the random value of the movie that is being requested is being rounded by the movie itself. As example: There appears to be no difference between the frames requested at 2.40 or 2.41.
It appears it got something to do with keyframing i've read on the Adobe® Flex™ 3.5 Language Reference. The movie is a FLV file and i use the VideoDisplay object to display the movie.
Does someone is familiar with this or knows a solution to my problem?
Thanks in advance
I haven't used the VideoDisplay object myself, but from what you've mentioned, there may be two solutions.
Add more keyframes when you encode your video. This will make it larger, but will allow you to seek more accurately.
Seek to the previous keyframe, and allow the video to play until it reaches your desired location.