You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stale-issue-message: 'This issue has been marked stale because it has been open for 14 days with no activity. Please remove the stale label or comment on this issue, or the issue will be automatically closed in the next 14 days.'
for file in *.csproj; do sed -i.backup "s/^[[:blank:]]*<ReferenceOutputAssembly>false<\/ReferenceOutputAssembly>/<ReferenceOutputAssembly>true<\/ReferenceOutputAssembly>/g" $file; rm $file.backup; done
23
+
cd ../
24
+
- mono ~/SonarScanner.MSBuild.exe begin /k:$SONARQUBE_PROJECT_KEY /d:sonar.host.url=$SONARQUBE_ENDPOINT_URL_PRD /d:sonar.login=$SONARQUBE_TOKEN_PRD /d:sonar.projectBaseDir=$SONARQUBE_PROJECT_BASE_DIR
25
+
- msbuild $MSBUILD_SLN_PATH
26
+
- mono ~/SonarScanner.MSBuild.exe end /d:sonar.login=$SONARQUBE_TOKEN_PRD
27
+
triggers:
28
+
cancel_old_ci: true
29
+
expression: |
30
+
((pull_request.target eq "main" OR pull_request.target eq "dev")
31
+
AND NOT pull_request.push.changes.all match "**/*.md") OR
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+15-9Lines changed: 15 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,24 +30,30 @@ does the following:
30
30
- Has corresponding changes to documentation, unit tests and sample environments (if
31
31
applicable)
32
32
- Contains a summary of the tests performed to validate your changes
33
+
- Updates the [Changelog](com.unity.robotics.urdf-importer/CHANGELOG.md) and describes changes in the Unreleased section
33
34
- Links to issue numbers that the PR resolves (if any)
34
35
36
+
## Workflow
37
+
38
+
This project is provided as a package to be imported into a Unity project. In order to avoid common issues regarding version control and unmanaged files, the suggested workflow for contributing to the package is as follows:
39
+
40
+
1. Clone this repository to a known location on your local machine (e.g. Documents).
41
+
2. Git checkout the `dev` branch to ensure you have the latest staged changes.
42
+
3. In a development Unity project (e.g. a new project created from the Unity Hub of the minimum Unity [version](README.md) or above), open the `Window > Package Manager`.
43
+
4. Click the `+` in the top-left of the Package Manager window and select `Add package from disk...`.
44
+
5. Navigate to the cloned repository, and select the `com.unity.<package>/package.json` file. Click `Open`.
45
+
6. The local version of the package is now added to your Unity project! Changes made to your cloned directory will update in your Unity project.
46
+
35
47
<!-- ## Continuous Integration (CI)
36
48
37
49
We run continuous integration on all PRs; all tests must be passing before the PR is merged. -->
38
50
39
51
## Code style
40
52
41
-
All Python code should follow the [PEP 8 style guidelines](https://pep8.org/).
42
-
43
-
All C# code should follow the [Microsoft C# Coding Conventions](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/inside-a-program/coding-conventions).
44
-
Additionally, the [Unity Coding package](https://docs.unity3d.com/Packages/[email protected]/manual/index.html)
45
-
can be used to format, encode, and lint your code according to the standard Unity
46
-
development conventions. Be aware that these Unity conventions will supersede the
47
-
Microsoft C# Coding Conventions where applicable.
53
+
All C# code should follow the [Microsoft C# Coding Conventions](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/inside-a-program/coding-conventions). (Code may be reformatted to Unity coding standards where applicable.)
48
54
49
-
Please note that even if the code you are changing does not adhere to these guidelines,
50
-
we expect your submissions to follow these conventions.
55
+
Please note that even if the code you are changing does not follow these conventions,
We're currently working on lots of things! Please take a short moment fill out our [survey](https://unitysoftware.co1.qualtrics.com/jfe/form/SV_0ojVkDVW0nNrHkW) to help us identify what products and packages to build next.
10
+
11
+
---
12
+
13
+
## Introduction
14
+
7
15
URDF Importer allows you to import a robot defined in [URDF](http://wiki.ros.org/urdf/XML) format in a Unity scene. URDF defines the geometry, visual meshes, kinematic and dynamic attributes of a Robot. Importer parses a URDF file and imports it into Unity using PhyX 4.0 articulation bodies.
8
16
9
-
# Using the Package
17
+
##Using the Package
10
18
11
-
## Adding the URDF package
19
+
###Adding the URDF package
12
20
13
21
1. Open the Package Manager from Unity Menu. Click `Window -> Package Manager`. A new package manager window will appear.
14
22
15
23
2. Click on the `+` sign on the top left corner of the package manager window and click on `Add Package from Git URL`.
16
24
17
25
<imgsrc = "images~/Package_manager_add.png">
18
26
19
-
3. Enter the git URL for the URDF Importer with the latest version tag (currently v0.5.0) `https://github.com/Unity-Technologies/URDF-Importer.git?path=/com.unity.robotics.urdf-importer#v0.5.0` in the text box and press `Enter`.
27
+
3. Enter the git URL for the URDF Importer with the latest version tag (currently v0.5.2) `https://github.com/Unity-Technologies/URDF-Importer.git?path=/com.unity.robotics.urdf-importer#v0.5.2` in the text box and press `Enter`.
20
28
21
29
4. Click `Import URDF`.
22
30
23
-
## Importing the robot using URDF file
31
+
###Importing the robot using URDF file
24
32
25
33
1. Copy the URDF and the associated files in the assets folder in the Project window. Make sure the [location](https://github.com/Unity-Technologies/Unity-Robotics-Hub/blob/main/tutorials/urdf_importer/urdf_appendix.md#file-hierarchy) of the mesh files is correct.
26
34
@@ -35,7 +43,7 @@ URDF Importer allows you to import a robot defined in [URDF](http://wiki.ros.org
35
43
4. Click `Import URDF`
36
44
37
45
38
-
# Tutorials
46
+
##Tutorials
39
47
40
48
Instructions for using URDF importer can be found [here](https://github.com/Unity-Technologies/Unity-Robotics-Hub/blob/main/tutorials/urdf_importer/urdf_tutorial.md).
DisplaySettingsToggle(newGUIContent("Use Gravity","If disabled, robot is not affected by gravity."),urdfRobot.SetRigidbodiesUseGravity,UrdfRobot.useGravity);
@@ -61,9 +57,12 @@ public override void OnInspectorGUI()
61
57
EditorGUILayout.EndHorizontal();
62
58
63
59
GUILayout.Space(5);
60
+
EditorGUI.BeginDisabledGroup(true);
64
61
EditorGUILayout.PropertyField(axisType,newGUIContent("Axis Type","Adjust this if the models that make up your robot are facing the wrong direction."));
0 commit comments