Giter VIP home page Giter VIP logo

ugcs-java-sdk's People

Contributors

ailierynn avatar dkvashnin avatar episarenko avatar ikurokhtin avatar kshavrin avatar morekhov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ugcs-java-sdk's Issues

tlm to csv

Hi, i am new with this program, how can i use it in ubuntu for convert a tlm file to csv?

Failed to build

I'm on Ubuntu 16.04, cloned the repository, and used maven (mvn clean package) at the root directory of the repo.

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Messaging API ...................................... SUCCESS [ 29.938 s]
[INFO] UAV Control System API ............................. SUCCESS [ 13.664 s]
[INFO] UAV Control System Client .......................... FAILURE [  2.248 s]
[INFO] UgCS Java SDK ...................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 46.047 s
[INFO] Finished at: 2016-08-04T08:37:32-06:00
[INFO] Final Memory: 24M/80M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.6:jar (default-jar) on project ucs-client: Execution default-jar of goal org.apache.maven.plugins:maven-jar-plugin:2.6:jar failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-jar-plugin:2.6:jar: java.lang.ExceptionInInitializerError: null
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.apache.maven.plugins:maven-jar-plugin:2.6
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/home/acusar/.m2/repository/org/apache/maven/plugins/maven-jar-plugin/2.6/maven-jar-plugin-2.6.jar
[ERROR] urls[1] = file:/home/acusar/.m2/repository/org/slf4j/slf4j-jdk14/1.5.6/slf4j-jdk14-1.5.6.jar
[ERROR] urls[2] = file:/home/acusar/.m2/repository/org/slf4j/jcl-over-slf4j/1.5.6/jcl-over-slf4j-1.5.6.jar
[ERROR] urls[3] = file:/home/acusar/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.2.1/maven-reporting-api-2.2.1.jar
[ERROR] urls[4] = file:/home/acusar/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.1/doxia-sink-api-1.1.jar
[ERROR] urls[5] = file:/home/acusar/.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.1/doxia-logging-api-1.1.jar
[ERROR] urls[6] = file:/home/acusar/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
[ERROR] urls[7] = file:/home/acusar/.m2/repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar
[ERROR] urls[8] = file:/home/acusar/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
[ERROR] urls[9] = file:/home/acusar/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar
[ERROR] urls[10] = file:/home/acusar/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[11] = file:/home/acusar/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[12] = file:/home/acusar/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar
[ERROR] urls[13] = file:/home/acusar/.m2/repository/org/apache/maven/maven-archiver/2.6/maven-archiver-2.6.jar
[ERROR] urls[14] = file:/home/acusar/.m2/repository/org/apache/maven/shared/maven-shared-utils/0.7/maven-shared-utils-0.7.jar
[ERROR] urls[15] = file:/home/acusar/.m2/repository/com/google/code/findbugs/jsr305/2.0.1/jsr305-2.0.1.jar
[ERROR] urls[16] = file:/home/acusar/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.20/plexus-utils-3.0.20.jar
[ERROR] urls[17] = file:/home/acusar/.m2/repository/org/codehaus/plexus/plexus-archiver/2.9/plexus-archiver-2.9.jar
[ERROR] urls[18] = file:/home/acusar/.m2/repository/org/codehaus/plexus/plexus-io/2.4/plexus-io-2.4.jar
[ERROR] urls[19] = file:/home/acusar/.m2/repository/commons-io/commons-io/2.2/commons-io-2.2.jar
[ERROR] urls[20] = file:/home/acusar/.m2/repository/org/apache/commons/commons-compress/1.9/commons-compress-1.9.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
[ERROR] 
[ERROR] -----------------------------------------------------
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :ucs-client

My maven configuration is

Apache Maven 3.3.9
Maven home: /usr/share/maven
Java version: 9-internal, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-9-openjdk-amd64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.4.0-31-generic", arch: "amd64", family: "unix"

I'm not very familiar with Java so any pointers would be appreciated!

Version 3.7 has "java.lang.Exception: No uplink." error

I downloaded 3.7 which solves the problem with the altitudeType and goes much further but it now presents the following error:

Sample mission created
WP-Direct sample route saved
EMU-101 control gained
EMU-101 control released
java.lang.Exception: No uplink.
at com.ugcs.ucs.client.Client.execute(Client.java:105)
at com.ugcs.ucs.client.Client.execute(Client.java:111)
at com.ugcs.ucs.client.ClientSession.uploadRoute(ClientSession.java:179)
at com.ugcs.ucs.client.samples.UploadSingleWaypointRoute.createSingleWaypointRoute(UploadSingleWaypointRoute.java:146)
at com.ugcs.ucs.client.samples.UploadSingleWaypointRoute.main(UploadSingleWaypointRoute.java:82)
Command execution failed.
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)
at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:764)
at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:711)
at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:289)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

I can see using UgCS that it has created the mission and a single waypoint. Is there some way I can get around the java.lang.Exception: No uplink.

Thanks

Adding wait action to Route Segment

I can see that the SegmentDefinition.newBuilder() supports addActionDefinitions but I a struggling to create a DomainProto.WaitDefinition. Can you possibly help?

I want the drone to wait for 10 seconds at the waypoint.

        DomainProto.WaitDefinition wd=??? how to create wd ???
        
        SegmentDefinition.Builder routeSegment = SegmentDefinition
                .newBuilder()
                .setAlgorithmClassName("com.ugcs.ucs.service.routing.impl.WaypointAlgorithm")
                .setFigure(figure)
                .addActionDefinitions(DomainProto.ActionDefinition.newBuilder()
                        .setWaitDefinition(wd))

Many thanks

Wrong telemetry

Hi:

I am trying to read telemetry with version 2.13. But in the latitude and longitude these erroneous values ​​appear:

{"id": "TT_LATITUDE", "value": 0.33958137}, {"id": "TT_LONGITUDE", "value": - 1.7310266}

You have to do some calculation to obtain to get the positions like this: "19.456566, -99.180498.61.17" WGS-84.

Thanks in advance

Regards

Unable to POST waypoint

Im getting the below error on trying to post a waypoint by

java -cp .:* com.ugcs.ucs.client.samples.UploadSingleWaypointRoute UploadSingl
eWaypointRoute -w "56.9761591,24.0730345,100.0" -s 5.0 "EMU-COPTER-17"

java.lang.Exception: Sessions number exceeded the maximum allowed for <hyper text='version <b>Open</b>' data='buy=sessionsLimit' action=event />. at com.ugcs.ucs.client.Client.execute(Client.java:101) at com.ugcs.ucs.client.Client.execute(Client.java:107) at com.ugcs.ucs.client.ClientSession.login(ClientSession.java:47) at com.ugcs.ucs.client.samples.UploadSingleWaypointRoute.uploadSingleWaypointRoute(UploadSingleWaypointRoute.java:96) at com.ugcs.ucs.client.samples.UploadSingleWaypointRoute.main(UploadSingleWaypointRoute.java:62)

SendCommand java samples not working fully

Hey,

I just built the ugcs-java-sdk repo with maven and I can run the SendCommand sample with java.
However, differents commands seems to work unproperly :

  • SendCommand -c waypoint : when giving latitude / longitude / altitude and "EMU-COPTER-17" as arguments, I can see the emulation copter moves in the regular client but it does not go to the specified waypoint..?

  • SendCommand -c return_to_home works but final alt is mixing AGL and AMSL.. My home location is AGL 0m and AMSL 329m and copter went to the right lat/long but with AGL 329m..

Thanks for your review !

Cant get parameters from vehicle (want to get lowBatteryVoltage and dischargedBatteryVoltage)

I am trying to read lowBatteryVoltage and dischargedBatteryVoltage of the selected Vehicle (EMU-101). My code is:
DomainProto.Vehicle vehicle = session.lookupVehicle(name);
VehicleProfile vp = vehicle.getProfile();
List<DomainProto.VehicleParameter> lvp = vp.getParametersList();

If I look at vp in the debugger I do not see any fields that could contain lowBatteryVoltage and dischargedBatteryVoltage. Also lvp contains an empty list.

When would these fields be filled in?

Sample program UploadSingleWaypointRoute fails with Route Processing Error

Good day,
I am running version ugcs-java-sdk version 3.6 on Windows 10 with UGCS-3.6.248. I am able to successfully run the ListenTelemetry and SendCommand samples.

When I run the UploadSingleWaypointRoute the following message is displayed on the console:
MS_ERROR: There is no parameter named "altitudeType".
java.lang.IllegalStateException: Route processing error
at com.ugcs.ucs.client.ClientSession.processRoute(ClientSession.java:151)
at com.ugcs.ucs.client.samples.UploadSingleWaypointRoute.uploadSingleWaypointRoute(UploadSingleWaypointRoute.java:131)
at com.ugcs.ucs.client.samples.UploadSingleWaypointRoute.main(UploadSingleWaypointRoute.java:79)

Can you please let me know why this is happening, and what I can do to resolve the issue.

Many thanks

Error when runnint tml2csv

Hi,

In Windows 10 I'm trying to convert a tlm file containing multiple flights for the day into csv files. When I run the command given in the pdf, I get 1 csv file and in the command prompt I see multiple "WARNING: Value can not be decoded! No codec found for type {43}" messages. That csv file contains data for only 1 flight. Also I'm using version 3 of the tool.

Any suggestions?

Some help to get samples running

Hello i'm trying to run the very first example of sample

i'm using ubuntu 14 installed ugcs server up and running ( official client can connect and the map is shown )

i've installed the sdk , moved to the target directory ( after ran the maven clean package command )

and once in the /ugcs/ugcs-java-sdk/target/ugcs-java-sdk-2.8.1/ucs-client directory
i run

java -cp .;* com.ugcs.ucs.client.samples.ListenTelemetry -t 10

i have the java help shown with like i've done --help with a message at the end "cannot find command client.properties"

when i run this command

java -cp ".;*" com.ugcs.ucs.client.samples.ListenTelemetry -t 10

( notice the quotes around .;* ) it says that it can't find the main class

com.ugcs.ucs.client.samples.ListenTelemetry

any help on this ?

thanks in advance..

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.