getAngularVelocity

7 views
Skip to first unread message

Naoya Arakawa

unread,
Jan 13, 2014, 7:54:15 AM1/13/14
to sigvers...@googlegroups.com
Hello,

I have another problem:
I tried to use the simObj.getAngularVelocity function and
got a core dump.

The following is the part of the code (onAction):

double WatchController::onAction(ActionEvent &evt) {
  SimObj *obj = getObj(myname());
  Vector3d angv;
  obj->getAngularVelocity(angv); 
  obj->addRelForceAtRelPos (0, -2, 0, 0, 0, 200);
  std::cout << "angv:" << angv.x() << "," << angv.y() << "," << angv.z() << std::endl;
  return 1.0;

Core dump does not occur without the getAngularVelocity line.

As I am new to c++, if this is a simple coding mistake, 
please point it out for me.  If else, what is the problem?

Attached are the controller file, world file and error file.
Quoted below is the core dump message on the terminal.

Best,

-- Naoya Arakawa


[SYS]  ****SIMULATION START****
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xb63ce1a6, pid=10943, tid=3056871168
#
# JRE version: 6.0_27-b27
# Java VM: OpenJDK Server VM (20.0-b12 mixed mode, sharing linux-x86 )
# Derivative: IcedTea6 1.12.6
# Distribution: Ubuntu 13.04, package 6b27-1.12.6-1ubuntu0.13.04.2
# Problematic frame:
# C  [libc.so.6+0x851a6]  envz_strip+0x1d6
#
# An error report file with more information is saved as:
# /home/rondelion/MyWorld/hs_err_pid10943.log
#
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
angv:0,0,0
angv:0,0,0
/home/rondelion/sigverse-2.2.0/bin/sigserver.sh: line 14: 10943 Aborted                 (core dumped) /home/rondelion/sigverse-2.2.0/bin/sigserver $@

avt1.zip

Tetsunari Inamura

unread,
Jan 13, 2014, 9:25:20 AM1/13/14
to sigvers...@googlegroups.com
Dear Naoya,

Thank you for reporting the bug.

I have confirmed that getAngularVelocity has a problem.
If I used the similar API getLinearVelocity, there was no problem.

I'll fixed the problem as soon as possible and inform in this ML.

Thank you for your cooperation and patient.

Best regards,
------------------------------------------------
Tetsunari Inamura (Associate Professor)
National Institute of Informatics, JAPAN
The Graduate University for Advanced Studies, JAPAN
TEL : +81-3-4212-2518 FAX : +81-3-4212-2120
URL : http://www.iir.nii.ac.jp/index_e.html
Email : ina...@nii.ac.jp
> --
> You received this message because you are subscribed to the Google Groups "SIGVerse-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sigverse-user...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Tetsunari Inamura

unread,
Jan 13, 2014, 12:19:26 PM1/13/14
to sigvers...@googlegroups.com
Dear Naoya and all of the SIGVerse users,

I have fixed the following problems and released a new SIGServer v2.2.2.

Please download the latest version from
http://sigverse.org/sigverse/main/download/

I'm sorry for the inconvenient.
But, your bug reports are quite helpful for the development.

Thank you for your cooperation.

Best regards,
------------------------------------------------
Tetsunari Inamura (Associate Professor)
National Institute of Informatics, JAPAN
The Graduate University for Advanced Studies, JAPAN
TEL : +81-3-4212-2518 FAX : +81-3-4212-2120
URL : http://www.iir.nii.ac.jp/index_e.html
Email : ina...@nii.ac.jp



Reply all
Reply to author
Forward
0 new messages