Skip to content

Commit

Permalink
w2
Browse files Browse the repository at this point in the history
  • Loading branch information
jslee02 committed Apr 4, 2024
1 parent ed9c930 commit 48dcf97
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 14 deletions.
4 changes: 3 additions & 1 deletion dart/common/Subject.hpp
Expand Up @@ -33,6 +33,8 @@
#ifndef DART_COMMON_SUBJECT_HPP_
#define DART_COMMON_SUBJECT_HPP_

#include <dart/Export.hpp>

#include <set>

namespace dart {
Expand All @@ -54,7 +56,7 @@ class Observer;
/// dart::sub_ptr is a templated smart pointer that will change itself into a
/// nullptr when its Subject is destroyed. It offers one of the easiest ways to
/// take advantage of the Subject/Observer pattern.
class Subject
class DART_API Subject
{
public:
friend class Observer;
Expand Down
2 changes: 1 addition & 1 deletion dart/dynamics/SoftBodyNode.hpp
Expand Up @@ -331,7 +331,7 @@ class DART_API SoftBodyNode : public detail::SoftBodyNodeBase
void updateInertiaWithPointMass();
};

class SoftBodyNodeHelper
class DART_API SoftBodyNodeHelper
{
public:
/// Create a Properties struct for a box-shaped SoftBodyNode with 8
Expand Down
2 changes: 1 addition & 1 deletion dart/dynamics/detail/EntityNodeAspect.hpp
Expand Up @@ -44,7 +44,7 @@ class EntityNode;
namespace detail {

//==============================================================================
struct EntityNodeProperties
struct DART_API EntityNodeProperties
{
/// Name of the Entity/Node
std::string mName;
Expand Down
5 changes: 3 additions & 2 deletions dart/dynamics/detail/FixedFrameAspect.hpp
Expand Up @@ -33,13 +33,14 @@
#ifndef DART_DYNAMICS_DETAIL_FIXEDFRAMEASPECT_HPP_
#define DART_DYNAMICS_DETAIL_FIXEDFRAMEASPECT_HPP_

#include <Eigen/Geometry>
#include <dart/Export.hpp>

#include <Eigen/Geometry>
namespace dart {
namespace dynamics {
namespace detail {

struct FixedFrameProperties
struct DART_API FixedFrameProperties
{
/// The relative transform of the FixedFrame
Eigen::Isometry3d mRelativeTf;
Expand Down
4 changes: 3 additions & 1 deletion dart/dynamics/detail/MarkerAspect.hpp
Expand Up @@ -33,6 +33,8 @@
#ifndef DART_DYNAMICS_DETAIL_MARKERASPECT_HPP_
#define DART_DYNAMICS_DETAIL_MARKERASPECT_HPP_

#include <dart/Export.hpp>

#include <dart/math/Helpers.hpp>

#include <Eigen/Core>
Expand All @@ -41,7 +43,7 @@ namespace dart {
namespace dynamics {
namespace detail {

struct MarkerProperties
struct DART_API MarkerProperties
{
enum ConstraintType
{
Expand Down
4 changes: 2 additions & 2 deletions dart/dynamics/detail/PlanarJointAspect.hpp
Expand Up @@ -109,8 +109,8 @@ struct DART_API PlanarJointUniqueProperties
};

//==============================================================================
struct PlanarJointProperties : GenericJoint<math::R3Space>::Properties,
PlanarJointUniqueProperties
struct DART_API PlanarJointProperties : GenericJoint<math::R3Space>::Properties,
PlanarJointUniqueProperties
{
DART_DEFINE_ALIGNED_SHARED_OBJECT_CREATOR(PlanarJointProperties)

Expand Down
31 changes: 25 additions & 6 deletions docker/dev/v6.14/Dockerfile.gazebo
Expand Up @@ -4,13 +4,32 @@ FROM jslee02/dart-dev:ubuntu-jammy-v6.14
# Avoid warnings by switching to noninteractive
ENV DEBIAN_FRONTEND=noninteractive

WORKDIR /ws

# Compile and install DART and dartpy
COPY . /opt/dart
WORKDIR /opt/dart
RUN cd /opt/dart \
&& cmake \
-B build \
COPY . /ws/dart
RUN rm -rf /ws/dart/build
RUN cmake \
-S dart \
-B dart/build \
-DCMAKE_INSTALL_PREFIX=/usr/ \
-DCMAKE_BUILD_TYPE=Release .. \
-DBUILD_SHARED_LIBS=ON \
&& cmake --build build --target install -j
&& cmake \
--build dart/build \
--target install \
-j16

# Install Gazebo from source
ENV IGNITION_PHYSICS_VERSION=7
RUN apt-add-repository -s "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable $(lsb_release -c -s) main"
RUN apt-get build-dep -y ignition-physics${IGNITION_PHYSICS_VERSION}-dev
RUN clone https://github.com/ignitionrobotics/ign-physics -b ign-physics${IGNITION_PHYSICS_VERSION}
RUN cmake \
-S ign-physics \
-B ign-physics/build \
-DCMAKE_BUILD_TYPE=Release .. \
&& cmake \
--build build \
--target install \
-j16

0 comments on commit 48dcf97

Please sign in to comment.