This file contains hidden or 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
<NamedIndividual rdf:about="sm#chair1"> | |
<rdf:type rdf:resource="&semantic_mapping_domain_model;Chair"/> | |
<semantic_mapping_domain_model:hasPosition rdf:resource="sm#chair1_coordinates"/> | |
<semantic_mapping_domain_model:hasSize rdf:resource="sm#chair1_size"/> | |
<semantic_mapping_domain_model:hasAlternativeReference rdf:resource="sm#chair_alternative_reference_1"/> | |
<semantic_mapping_domain_model:hasAlternativeReference rdf:resource="sm#chair_alternative_reference_2"/> | |
<semantic_mapping_domain_model:hasAlternativeReference rdf:resource="sm#chair_alternative_reference_3"/> | |
<semantic_mapping_domain_model:hasPreferredReference rdf:resource="sm#chair_preferred_reference"/> | |
</NamedIndividual> |
This file contains hidden or 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
<owl:Class rdf:about="sm#Coordinates"> | |
<rdfs:subClassOf rdf:resource="sm#Position"/> | |
<rdfs:subClassOf> | |
<owl:Restriction> | |
<owl:onProperty rdf:resource="sm#float_coordinates_z"/> | |
<owl:someValuesFrom rdf:resource="http://www.w3.org/2001/XMLSchema#float"/> | |
</owl:Restriction> | |
</rdfs:subClassOf> | |
<rdfs:subClassOf> | |
<owl:Restriction> |
This file contains hidden or 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
<owl:ObjectProperty rdf:about="sm#hasPosition"> | |
<rdfs:subPropertyOf rdf:resource="sm#hasSpatialProperty"/> | |
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#IrreflexiveProperty"/> | |
</owl:ObjectProperty> |
This file contains hidden or 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
package com.github.rosjava.jinchimiru.jinchimiru_sub_project; | |
import org.apache.commons.logging.Log; | |
import org.ros.message.MessageListener; | |
import org.ros.namespace.GraphName; | |
import org.ros.node.AbstractNodeMain; | |
import org.ros.node.ConnectedNode; | |
import org.ros.node.NodeMain; | |
import org.ros.node.topic.Subscriber; |
This file contains hidden or 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
float a = 0, b = 0; | |
int angularDir = 1; | |
void setup() { | |
size(500, 500); | |
ellipseMode(CENTER); | |
frameRate(15); | |
background(0); | |
} |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="@color/white_100_percent" | |
android:gravity="center" | |
android:orientation="vertical"> | |
<LinearLayout | |
android:id="@+id/discount_header" |
This file contains hidden or 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
rfcomm0 { | |
# Automatically bind the device at startup | |
bind no; | |
# Bluetooth address of the device | |
device 11:22:33:44:55:66; | |
# RFCOMM channel for the connection | |
channel 3; | |
# Description of the connection | |
comment "This is Device 1's serial port."; | |
} |
This file contains hidden or 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
arg1 = 0.00001 | |
arg2 = 1 | |
def function(a , T): | |
return numpy.array([T[1] , # evaluate dT1/dA | |
T[0]*arg1 - (T[1]/math.sqrt(1+T[1]**2))*arg2]) # evaluate dT2/dA |
This file contains hidden or 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
""" | |
The "solve" function returns a Solution object which can be passed an array of points at which to evaluate the solution. | |
""" | |
A = numpy.linspace(0,TF, 101) | |
T = solution(A) | |
print T | |
""" | |
We can plot the solution using pylab with the following code | |
""" |
This file contains hidden or 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
solution = scikits.bvp_solver.solve(problem, | |
solution_guess = ((X1T0 + X1Tf)/2.0, | |
(X2T0 + X2Tf)/2.0)) |