Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from choreonoid:master #115

Open
wants to merge 73 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
02d7a14
[CMake] Set CHOREONOID_USE_PYTHON2 variable in config file
ThomasDuvinage Aug 8, 2024
dc9f4b2
Add the setTransparency function to SphereMarker
s-nakaoka Jul 20, 2024
b1e7d0b
Add ZmpDevice
s-nakaoka Jul 12, 2024
4c1bc6d
Add API to access the ZMP device to LeggedBodyHelper
s-nakaoka Jul 19, 2024
84471d8
Fix classes accessing ZMP to use LeggedBodyHelper
s-nakaoka Jul 19, 2024
90c5d5a
Remove the ZMP attribute from BodyItem
s-nakaoka Jul 19, 2024
e9a7842
Fix the copy constructor of SgGroup to stop the shallow copy of the c…
s-nakaoka Jul 24, 2024
fba59a1
Add CameraItem and CameraConfigDialog
s-nakaoka Jul 22, 2024
e0ffd8e
Add the isometric view button to SceneBar
s-nakaoka Jul 26, 2024
edf3ee8
Update Japanese translations for the Base module
s-nakaoka Jul 23, 2024
09f2c2d
Fix BodySyncCameraItem and BodySyncCameraConfigDialog to inherit Came…
s-nakaoka Jul 23, 2024
bdf7f53
Update Japanese translations for BodyPlugin
s-nakaoka Jul 24, 2024
bca82bd
Fix a bug in outputting messages to MessageOut::cout and MessageOut::…
s-nakaoka Aug 9, 2024
e19df14
Fix a bug in setting URI information in StdSceneReader
s-nakaoka Jul 27, 2024
a9900cf
Fix VRMLSceneLoader to set the URI information
s-nakaoka Aug 9, 2024
866daf6
Fix bugs in finding a sub string in AbstractSceneWriter, StdSceneWrit…
s-nakaoka Jul 30, 2024
0a04851
Fix a bug in reading ambient colors in ObjSceneLoader
s-nakaoka Aug 9, 2024
7931c73
Improve AbstractSceneWriter::findOrCopyImageFile to avoid conflicts i…
s-nakaoka Aug 9, 2024
a6f5d18
Fix the CopyModelFiles mode of StdSceneWriter to recursively copy fil…
s-nakaoka Aug 10, 2024
7c53bb4
Implement a function to export the scene of selected renderable items…
s-nakaoka Jul 26, 2024
816f0c6
Update Japanese translations for the Base module
s-nakaoka Jul 26, 2024
5f55a70
Improve HolderDevice to support multiple categories
s-nakaoka Aug 10, 2024
510e41c
Fix KinematicBodyItemSet to emit KinematicBodySet::sigBodySetChanged …
s-nakaoka Aug 11, 2024
e740e34
Remove unnecessary headers from MovieRecorderDialog.cpp
s-nakaoka Aug 13, 2024
ea20e77
Remove an extraneous character from Link.cpp
s-nakaoka Aug 13, 2024
c99225e
Add functions to SgObject, SgNode and SgMaterial
s-nakaoka Aug 12, 2024
60f0fb3
Modify the metadata type for the URI information of a scene graph obj…
s-nakaoka Aug 15, 2024
7859b28
Improve STLSceneLoader to directly transform vertices and normals whe…
s-nakaoka Aug 14, 2024
afe54a6
Move the makeNameFilter function from ItemFileDialog to FileDialog
s-nakaoka Aug 13, 2024
f0f569e
Add the doSetCurrentDirectory argument to FileDialog::updatePresetDir…
s-nakaoka Aug 15, 2024
d75a784
Fix to use the system instance of FilePathVariableProcessor to enable…
s-nakaoka Aug 16, 2024
dae38e9
Fix a bug in copying model files in StdSceneWriter
s-nakaoka Aug 16, 2024
5e6cb2a
Add GeneralSceneFileLoadDialog
s-nakaoka Aug 13, 2024
d77c8af
Fix the implementation of GeneralSceneFileImporterBase to use General…
s-nakaoka Aug 16, 2024
829cf19
Update Japanese translations for the Base module
s-nakaoka Aug 14, 2024
3a7d267
Add the function for setting the default length unit hint of GeneralS…
s-nakaoka Aug 17, 2024
be16c3e
Add the getContentHash function to Mapping and Listing
s-nakaoka Aug 15, 2024
6a01cd0
Improve StdSceneReader to prevent conflicts between resources sharein…
s-nakaoka Aug 15, 2024
c3babc3
Improve LinkOverwriteItem to support the ShapeOffset and ShapeColor e…
s-nakaoka Aug 12, 2024
3a0f0d9
Fix Japanese translations for the Base module
s-nakaoka Aug 19, 2024
5de6514
Fix the Python wrappers for the signal types defined in TimeBar
s-nakaoka Aug 21, 2024
ca585a1
Fix SmokeDevice and RainSnowDevice to be public classes
s-nakaoka Aug 28, 2024
c41c68a
Modify the default background color of GLSceneRenderer
s-nakaoka Aug 29, 2024
c5a5f73
Add properties to GLVisionSimulatorItem
s-nakaoka Aug 29, 2024
27ea6ac
Update Japanese translations for BodyPlugin
s-nakaoka Aug 29, 2024
d9d36d0
Fix a bug in copying the initial state in BodyItem::doAssign when rel…
s-nakaoka Sep 2, 2024
720f1a9
Add a floor model with fence
s-nakaoka Sep 2, 2024
5db54ed
Modify the default recording mode of SimulatorItem to the tail record…
s-nakaoka Sep 3, 2024
163d1e4
Fix ItemTreeView and ItemTreeWidget to disable name editing for sub i…
s-nakaoka Sep 3, 2024
104e96a
Fix Item::addChildItem and Item::addSubItem to check if the target it…
s-nakaoka Sep 3, 2024
dda4beb
Fix the code to update sub visualizer items in SensorVisualizerItem
s-nakaoka Sep 3, 2024
2311b9c
Fix SensorVisualizerItem to update each sub item name when the corres…
s-nakaoka Sep 3, 2024
8fa835a
Improve ItemTreeWidget to keep the expansion state of an item when th…
s-nakaoka Sep 3, 2024
a17a5a8
Fix JointDisplacementWidgetSet to avoid a crash due to a bug of QDial
s-nakaoka Sep 4, 2024
2b9d4e8
Support for AGX Dynamics 2.38
s-nakaoka Sep 4, 2024
280b105
Refactor the API of LocatableItem
s-nakaoka Sep 6, 2024
fd893ff
Move the definition of continuous update state from BodyItem to Item
s-nakaoka Sep 7, 2024
011188c
Improve SimulatorItem to set all the associated items to the continuo…
s-nakaoka Sep 7, 2024
c063adf
Improve ItemPropertyWidget to block property editing when the target …
s-nakaoka Sep 7, 2024
876a53f
Fix ItemTreeWidget to block user inputs for items with the continuous…
s-nakaoka Sep 9, 2024
ac243ac
Fix item context menus to disable menu items that should not be execu…
s-nakaoka Sep 9, 2024
91336a4
Improve SmokeDevice and SceneSmoke to specify a tint color
s-nakaoka Sep 10, 2024
3238fb0
Update Japanese translations for the Base module
s-nakaoka Sep 10, 2024
9c45294
Make the ParticleSystem class and related headers public
s-nakaoka Sep 10, 2024
ed5998c
fix readGeometryTag in Sphere type
Taiki-Ishigaki Sep 1, 2024
7f65768
Fix to prevent a compile warning in Visual C++
s-nakaoka Sep 10, 2024
c6fa1a3
Fix the reference type of LocatableItem in LocationProxy to increase …
s-nakaoka Sep 16, 2024
3b0c4cc
Fix YAMLReader not to set the flow-style for empty mappings
s-nakaoka Sep 16, 2024
062bd24
Fix to delete objects managed by the Base module when the application…
s-nakaoka Sep 16, 2024
5f2a011
Fix StdSceneWriter to update the output base directory correctly
s-nakaoka Sep 17, 2024
6817db0
Improve the API of the MessageOut class
s-nakaoka Sep 18, 2024
96f6d82
Refactor some code on MessageOut
s-nakaoka Sep 18, 2024
d5cf076
Fix ItemTreeView to avoid a crash when its empty space is right-click…
s-nakaoka Sep 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmake/ChoreonoidConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ set(CHOREONOID_COMPILE_DEFINITIONS "@compile_definitions@")
set(CHOREONOID_DEFAULT_FVISIBILITY_HIDDEN @CHOREONOID_DEFAULT_FVISIBILITY_HIDDEN@)
set(CHOREONOID_INCLUDE_DIRS "@include_dirs@")
set(CHOREONOID_LIBRARY_DIRS "@library_dirs@")
set(CHOREONOID_USE_PYTHON2 @CNOID_USE_PYTHON2@)

if(@has_boost_libs_for_util_libs@)
find_package(Boost @boost_version@ EXACT COMPONENTS @boost_components_for_util_libs@)
Expand Down
1 change: 1 addition & 0 deletions include/cnoid/CameraConfigDialog
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "src/Base/CameraConfigDialog.h"
1 change: 1 addition & 0 deletions include/cnoid/CameraItem
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "src/Base/CameraItem.h"
1 change: 1 addition & 0 deletions include/cnoid/GeneralSceneFileLoadDialog
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "src/Base/GeneralSceneFileLoadDialog.h"
1 change: 1 addition & 0 deletions include/cnoid/ParticleSystem
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "src/SceneEffectsPlugin/ParticleSystem.h"
1 change: 1 addition & 0 deletions include/cnoid/RainSnowDevice
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "src/SceneEffectsPlugin/RainSnowDevice.h"
1 change: 1 addition & 0 deletions include/cnoid/RenderableItemSceneExporter
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "src/Base/RenderableItemSceneExporter.h"
1 change: 1 addition & 0 deletions include/cnoid/SmokeDevice
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "src/SceneEffectsPlugin/SmokeDevice.h"
1 change: 1 addition & 0 deletions include/cnoid/ZmpDevice
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "src/Body/ZmpDevice.h"
45 changes: 45 additions & 0 deletions share/model/misc/fencedfloor.body
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
format: ChoreonoidBody
formatVersion: 2.0
name: FencedFloor
links:
-
name: Floor
jointType: fixed
material: Ground
elements:
Shape:
translation: [ 0, 0, -0.1 ]
geometry: { type: Box, size: [ 10.0, 10.0, 0.2 ] }
appearance: { material: { diffuseColor: [ 0, 0, 1 ] }}
-
name: Fence1
parent: Floor
translation: [ 4.95, 0, 0.2 ]
jointType: fixed
elements:
Shape: &Fence1
geometry: { type: Box, size: [ 0.1, 10.0, 0.4 ] }
appearance: &App1 { material: { diffuseColor: [ 0.7, 0.7, 0.7 ] }}
-
name: Fence2
parent: Floor
translation: [ -4.95, 0, 0.2 ]
jointType: fixed
elements:
Shape: *Fence1
-
name: Fence3
parent: Floor
translation: [ 0, 4.95, 0.2 ]
jointType: fixed
elements:
Shape: &Fence2
geometry: { type: Box, size: [ 9.8, 0.1, 0.4 ] }
appearance: *App1
-
name: Fence4
parent: Floor
translation: [ 0, -4.95, 0.2 ]
jointType: fixed
elements:
Shape: *Fence2
2 changes: 1 addition & 1 deletion share/model/misc/smoke.body
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ links:
name: Base
jointType: fixed
elements:
SmokeDevice: { }
SmokeDevice: { tint_color: [ 1.0, 1.0, 1.0 ] }
8 changes: 8 additions & 0 deletions src/AGXDynamicsPlugin/AGXObjectFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ agxSDK::SimulationRef AGXObjectFactory::createSimulation(const AGXSimulationDesc
sim->getSpace()->setContactReductionThreshold(desc.contactReductionThreshhold);
sim->getDynamicsSystem()->setEnableContactWarmstarting(desc.enableContactWarmstarting);
sim->getMergeSplitHandler()->setEnable(desc.enableAMOR);

#if AGX_MAJOR_VERSION < 38
sim->getDynamicsSystem()->getAutoSleep()->setEnable(desc.enableAutoSleep);
#endif

return sim;
}

Expand Down Expand Up @@ -107,7 +111,11 @@ LinkRigidBodyRef AGXObjectFactory::createLinkRigidBody(const AGXRigidBodyDesc& d
rigid->setPosition(desc.p);
rigid->setRotation(desc.R);
rigid->setName(desc.name);

#if AGX_MAJOR_VERSION < 38
rigid->getAutoSleepProperties().setEnable(desc.enableAutoSleep);
#endif

return rigid;
}

Expand Down
8 changes: 7 additions & 1 deletion src/AGXDynamicsPlugin/AGXScene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,18 @@ void AGXScene::setGravity(const agx::Vec3 & g)

bool AGXScene::getEnableAutoSleep() const
{
#if AGX_MAJOR_VERSION >= 38
return false;
#else
return getSimulation()->getDynamicsSystem()->getAutoSleep()->getEnable();
#endif
}

void AGXScene::setEnableAutoSleep(const bool & bOn)
{
#if AGX_MAJOR_VERSION < 38
getSimulation()->getDynamicsSystem()->getAutoSleep()->setEnable(bOn);
#endif
}

bool AGXScene::saveSceneToAGXFile()
Expand All @@ -151,4 +157,4 @@ agxSDK::SimulationRef AGXScene::getSimulation() const
return _agxSimulation;
}

}
}
9 changes: 6 additions & 3 deletions src/Base/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
#include "ExtCommandItem.h"
#include "SceneItem.h"
#include "SceneGeometryMeasurementTracker.h"
#include "CameraItem.h"
#include "LightingItem.h"
#include "PointSetItem.h"
#include "PointSetGeometryMeasurementTracker.h"
#include "MultiPointSetItem.h"
#include "LightingItem.h"
#include "AbstractTextItem.h"
#include "ScriptItem.h"
#include "MessageLogItem.h"
Expand Down Expand Up @@ -434,13 +435,14 @@ void App::Impl::initialize()
ReferencedObjectSeqItem::initializeClass(ext);
SceneItem::initializeClass(ext);
SceneGeometryMeasurementTracker::initializeClass();
CameraItem::initializeClass(ext);
LightingItem::initializeClass(ext);
PointSetItem::initializeClass(ext);
PointSetGeometryMeasurementTracker::initializeClass();
MultiPointSetItem::initializeClass(ext);
AbstractTextItem::initializeClass(ext);
ScriptItem::initializeClass(ext);
MessageLogItem::initializeClass(ext);
LightingItem::initializeClass(ext);
CoordinateFrameListItem::initializeClass(ext);
CoordinateFrameItem::initializeClass(ext);
PositionTagGroupItem::initializeClass(ext);
Expand Down Expand Up @@ -495,9 +497,9 @@ App::~App()

App::Impl::~Impl()
{
AppConfig::flush();
delete qapplication;
delete pluginManager;
AppConfig::flush();
}


Expand Down Expand Up @@ -586,6 +588,7 @@ int App::Impl::exec()
RootItem::instance()->clearChildren();

pluginManager->finalizePlugins();
ext->deleteManagedObjects();
delete mainWindow;
mainWindow = nullptr;

Expand Down
6 changes: 6 additions & 0 deletions src/Base/AppCustomizationUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "FileDialog.h"
#include "TimeBar.h"
#include "DisplayValueFormat.h"
#include "GeneralSceneFileLoadDialog.h"
#include <cnoid/GettextUtil>

namespace cnoid {
Expand Down Expand Up @@ -116,6 +117,11 @@ class AppCustomizationUtil
TimeBar::setNegativeTimeEnabled(on);
}

static void setGeneralSceneFileLoadDialogDefaultLengthUnitHint(SceneLoader::LengthUnitType hint)
{
GeneralSceneFileLoadDialog::setDefaultLengthUnitHint(hint);
}

void setLengthUnit(DisplayValueFormat::LengthUnit unit)
{
displayValueFormat->setLengthUnit(unit);
Expand Down
1 change: 1 addition & 0 deletions src/Base/Base.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<file>icon/rightview.svg</file>
<file>icon/topview.svg</file>
<file>icon/bottomview.svg</file>
<file>icon/isometricview.svg</file>

<file>icon/global.svg</file>

Expand Down
12 changes: 10 additions & 2 deletions src/Base/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ set(sources
RenderableItem.cpp
RenderableItemUtil.cpp
RenderableItemSceneStatistics.cpp
RenderableItemSceneExporter.cpp
PolymorphicItemFunctionSet.cpp
PutPropertyFunction.cpp
RootItem.cpp
Expand Down Expand Up @@ -130,6 +131,10 @@ set(sources
SceneItemFileIO.cpp
SceneGeometryMeasurementTracker.cpp
GeneralSceneFileImporterBase.cpp
GeneralSceneFileLoadDialog.cpp
CameraItem.cpp
CameraConfigDialog.cpp
LightingItem.cpp
PointSetItem.cpp
PointSetGeometryMeasurementTracker.cpp
MultiPointSetItem.cpp
Expand All @@ -149,7 +154,6 @@ set(sources
TaskView.cpp
VirtualJoystickView.cpp
MessageLogItem.cpp
LightingItem.cpp
QtSvgUtil.cpp
)

Expand Down Expand Up @@ -226,6 +230,7 @@ set(headers
LocatableItem.h
RenderableItem.h
RenderableItemUtil.h
RenderableItemSceneExporter.h
ImageableItem.h
TargetItemPicker.h
UnifiedEditHistory.h
Expand Down Expand Up @@ -285,6 +290,10 @@ set(headers
SceneItem.h
SceneItemFileIO.h
GeneralSceneFileImporterBase.h
GeneralSceneFileLoadDialog.h
CameraItem.h
CameraConfigDialog.h
LightingItem.h
PointSetItem.h
MultiPointSetItem.h
PositionTagGroupItem.h
Expand All @@ -302,7 +311,6 @@ set(headers
TextEdit.h
TaskView.h
MessageLogItem.h
LightingItem.h
QtEventUtil.h
QVariantUtil.h
QtSvgUtil.h
Expand Down
Loading