[proposal] Add class for single link model. #321
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is just a proposal to add class for single link model
(related with @furushchev dinner discussion).
This is originally from https://github.com/jsk-ros-pkg/jsk_demos/blob/master/jsk_2015_06_hrp_drc/drc_task_common/euslisp/drc-testbed-models.l#L9.
This is used for creating single rigid body object model.
In this PR, I added
single-link-model
class, but I think adding function to create single link model is another solution.@furushchev
FYI, in euslisp, robot models and object models should be defined as
cascaded-link
class (or its subclass).Even if simple shape (like
make-cube
) and single rigid body object,it would be better to define it as
cascaded-link
instead ofbody
orbodyset
class.In
euslib/rbrain
, object models were defined as bothrobot-object
(old style object model class) andbody
orbodyset
class.It was very confusing.
Since used methods are quite different between
robot-object
andbody
, some codes forrobot-object
did not work forbody
and it was difficult to generalize codes.In euslisp,
body
,bodyset
,faceset
, ... classes have geometric shape information.bodyset-link
class has shape information and mass information and this class corresponds to so coldlink
in robotics fields.cascaded-link
class includeslinks
,joints
, and some other semantic information and this class corresponds torobot
andobject
.So, it would be better to define object model as
cascaded-link
class.The codes in this PR may be minimal codes to define
cascaded-link
class with single link.