-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
204 changed files
with
9,616 additions
and
3,728 deletions.
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
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,59 @@ | ||
#---------------------------------------------------------------- | ||
# Generated CMake target import file for configuration "DEBUG". | ||
#---------------------------------------------------------------- | ||
|
||
# Commands may need to know the format version. | ||
set(CMAKE_IMPORT_FILE_VERSION 1) | ||
|
||
# Import target "raisim::raisimZ" for configuration "DEBUG" | ||
set_property(TARGET raisim::raisimZ APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG) | ||
set_target_properties(raisim::raisimZ PROPERTIES | ||
IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/lib/libraisimZ.so" | ||
IMPORTED_SONAME_DEBUG "libraisimZ.so" | ||
) | ||
|
||
list(APPEND _IMPORT_CHECK_TARGETS raisim::raisimZ ) | ||
list(APPEND _IMPORT_CHECK_FILES_FOR_raisim::raisimZ "${_IMPORT_PREFIX}/lib/libraisimZ.so" ) | ||
|
||
# Import target "raisim::raisimPng" for configuration "DEBUG" | ||
set_property(TARGET raisim::raisimPng APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG) | ||
set_target_properties(raisim::raisimPng PROPERTIES | ||
IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/lib/libraisimPng.so" | ||
IMPORTED_SONAME_DEBUG "libraisimPng.so" | ||
) | ||
|
||
list(APPEND _IMPORT_CHECK_TARGETS raisim::raisimPng ) | ||
list(APPEND _IMPORT_CHECK_FILES_FOR_raisim::raisimPng "${_IMPORT_PREFIX}/lib/libraisimPng.so" ) | ||
|
||
# Import target "raisim::raisimMine" for configuration "DEBUG" | ||
set_property(TARGET raisim::raisimMine APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG) | ||
set_target_properties(raisim::raisimMine PROPERTIES | ||
IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/lib/libraisimMine.so" | ||
IMPORTED_SONAME_DEBUG "libraisimMine.so" | ||
) | ||
|
||
list(APPEND _IMPORT_CHECK_TARGETS raisim::raisimMine ) | ||
list(APPEND _IMPORT_CHECK_FILES_FOR_raisim::raisimMine "${_IMPORT_PREFIX}/lib/libraisimMine.so" ) | ||
|
||
# Import target "raisim::raisimODE" for configuration "DEBUG" | ||
set_property(TARGET raisim::raisimODE APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG) | ||
set_target_properties(raisim::raisimODE PROPERTIES | ||
IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/lib/libraisimODE.so" | ||
IMPORTED_SONAME_DEBUG "libraisimODE.so" | ||
) | ||
|
||
list(APPEND _IMPORT_CHECK_TARGETS raisim::raisimODE ) | ||
list(APPEND _IMPORT_CHECK_FILES_FOR_raisim::raisimODE "${_IMPORT_PREFIX}/lib/libraisimODE.so" ) | ||
|
||
# Import target "raisim::raisim" for configuration "DEBUG" | ||
set_property(TARGET raisim::raisim APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG) | ||
set_target_properties(raisim::raisim PROPERTIES | ||
IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/lib/libraisim.so" | ||
IMPORTED_SONAME_DEBUG "libraisim.so" | ||
) | ||
|
||
list(APPEND _IMPORT_CHECK_TARGETS raisim::raisim ) | ||
list(APPEND _IMPORT_CHECK_FILES_FOR_raisim::raisim "${_IMPORT_PREFIX}/lib/libraisim.so" ) | ||
|
||
# Commands beyond this point should not need to know the version. | ||
set(CMAKE_IMPORT_FILE_VERSION) |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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,27 @@ | ||
import os | ||
import numpy as np | ||
import raisimpy as raisim | ||
import time | ||
|
||
|
||
world = raisim.World() | ||
world.setTimeStep(0.001) | ||
|
||
springed_cartpole_urdf_file = os.path.dirname(os.path.abspath(__file__)) + "/../../rsc/springDamper/cartpole.urdf" | ||
server = raisim.RaisimServer(world) | ||
ground = world.addGround() | ||
|
||
springed_cartpole = world.addArticulatedSystem(springed_cartpole_urdf_file) | ||
springed_cartpole.setName("springed_cartpole") | ||
springed_cartpole.getSprings()[1].q_ref = np.array([2., 0, 0, 0]) # overwrite the spring mount position | ||
|
||
for spring in springed_cartpole.getSprings(): | ||
print(spring.q_ref) | ||
|
||
server.launchServer(8080) | ||
|
||
for i in range(500000): | ||
time.sleep(0.001) | ||
world.integrate() | ||
|
||
server.killServer() |
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
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.