beverlylytle

Results 27 comments of beverlylytle

I've been working on something that's in the direction of what you want and is currently under re-review. https://github.com/compas-dev/compas_fab/pull/259. The idea is that for the life of the `PyBulletClient` there...

> as long as the packages are saved at the same parent folder. Precisely. PyBullet does not treat packages as ROS does. It discards the "package" prefix and treats the...

This last thing almost already exists under the name `Line.point(t)`, the only difference being that `t` represents a percentage of length of the line rather than the distance from the...

> I will need to add an event emitter or some way in which this model can be observed from an external class and hook into changes (like rcf change)...

I just noticed that `compas_fab.robots.Robot` has the methods `set_RCF` (throwing a NotImplementedError) and `get_RCF`. I suppose those should be updated in a further PR.

![run_away.gif](https://images.zenhubusercontent.com/5e1c34f2c5984b3134af5393/a06f8162-0c9c-4e1e-bbcc-a504d87752e5)

Another option is `Polynomial.fit` with `deg=1` https://numpy.org/doc/stable/reference/generated/numpy.polynomial.polynomial.Polynomial.fit.html#numpy.polynomial.polynomial.Polynomial.fit

Here's a variation on your code that behaves the way you want it to. ``` from compas.geometry import Box from compas.datastructures import Mesh # make a simple compas mesh mesh...

This last suggestion still has shallow copy issues (if the elements of `load` are again lists). To get around this, one would have to use `copy.deepcopy`, or as you suggest,...