Skip to content

Commit 202d39e

Browse files
author
Taiju Yamada
committed
Merge branch 'setDefaultGeometryValue' into githubaction_setDefaultGeometryValue
2 parents 9e986d7 + 6d70e87 commit 202d39e

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
cmake_minimum_required (VERSION 2.8.0)
14+
cmake_minimum_required (VERSION 2.8.8)
1515
project(mujincontrollerclient)
1616
set( CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE )
1717

src/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ if (libzmq_FOUND)
3535
set(SOURCE_FILES ${SOURCE_FILES} binpickingtaskzmq.h binpickingtaskzmq.cpp mujinzmq.cpp)
3636
endif()
3737

38-
add_library(libmujincontrollerclient SHARED ${SOURCE_FILES})
38+
add_library(libmujincontrollerclientbase OBJECT ${SOURCE_FILES})
39+
40+
add_library(libmujincontrollerclient SHARED $<TARGET_OBJECTS:libmujincontrollerclientbase>)
3941
if( EXTRA_MSVC_DEPEND )
4042
message(STATUS "adding msvc_boost dependency")
4143
add_dependencies(libmujincontrollerclient ${EXTRA_MSVC_DEPEND})
@@ -63,7 +65,7 @@ if( OPT_BUILD_STATIC )
6365
set(LIBMUJINCONTROLLERCLIENT_NAME mujincontrollerclient${MUJINCLIENT_LIBRARY_SUFFIX})
6466
endif()
6567

66-
add_library(libmujincontrollerclient_static STATIC ${SOURCE_FILES})
68+
add_library(libmujincontrollerclient_static STATIC $<TARGET_OBJECTS:libmujincontrollerclientbase>)
6769
set_target_properties(libmujincontrollerclient_static PROPERTIES OUTPUT_NAME ${LIBMUJINCONTROLLERCLIENT_NAME}
6870
SOVERSION 0 # always have it 0 since we're including the soversion as part of the library name
6971
VERSION ${MUJINCLIENT_VERSION}

src/mujincontrollerclient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ void ObjectResource::LinkResource::GetGeometries(std::vector<ObjectResource::Geo
332332
ObjectResource::GeometryResourcePtr geometry(new GeometryResource(controller, this->objectpk, GetJsonValueByKey<std::string>(*it, "pk")));
333333
geometry->linkpk = linkpk;
334334
LoadJsonValueByKey(*it,"name",geometry->name,geometry->pk);
335-
LoadJsonValueByKey(*it,"visible",geometry->visible);
335+
LoadJsonValueByKey(*it,"visible",geometry->visible,true);
336336
LoadJsonValueByKey(*it,"geomtype",geometry->geomtype);
337337
LoadJsonValueByKey(*it,"transparency",geometry->transparency);
338338
LoadJsonValueByKey(*it,"quaternion",geometry->quaternion);

0 commit comments

Comments
 (0)