[choreonoid-users 00017] Re: Does it support Force Sensor?

Luis Filipe Rossi luisf.rossi at gmail.com
Sat Nov 9 00:37:01 JST 2013


No problem at all,

I must say thank you for providing a solution so fast. Just updated that
line of code, compiled and seems to be working.

I will hep with whatever I can.

Best regards,


On Fri, Nov 8, 2013 at 8:34 AM, Shin'ichiro Nakaoka <s.nakaoka at aist.go.jp>wrote:

>
> Hi Luis,
>
> > I will send you de model tomorrow. It is at the lab computer. It is
> > basically the SR1 model with no chest, arms and head. I added the force
> > sensor as it is at the HRP-4C model.
>
> Thank you for this.
> I tried to load your modified model and confirmed that Choreonoid
> crashes, and I have found a bug causing this problem.
>
> By applying the following modification, the bug is fixed:
>
> --- a/src/Body/Device.h
> +++ b/src/Body/Device.h
> @@ -143,7 +143,7 @@
>                  if(TargetType* device =
> dynamic_cast<TargetType*>(get(i))){
>                      const int id = device->id();
>                      if(id >= 0){
> -                        if(out_map.size() >= id){
> +                        if(out_map.size() <= id){
>                              out_map.resize(id + 1);
>                          }
>                          out_map[id] = device;
>
> I'm sorry to trouble you,
> and thank you so much for pointing out this problem.
>
> --
> Shin'ichiro Nakaoka <s.nakaoka at aist.go.jp>
> _______________________________________________
> choreonoid-users mailing list
> choreonoid-users at choreonoid.org
> https://choreonoid.org/mailman/listinfo/choreonoid-users
>



-- 
Luís Filipe Rossi
Electrical Engineer
Biomechatronics Lab. / Grupo de Sensores Integráveis e Sistemas
Escola Politécnica
Universidade de São Paulo
Cel. +55 (11) 97662-9234
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://choreonoid.org/pipermail/choreonoid-users/attachments/20131108/2ea2fb4a/attachment.html>


More information about the choreonoid-users mailing list