I am trying to test collision with convex polyhedra using the SWIFT library. Here are my two shapes:
cube.poly
POLY
8
Type: Posts; User: SterlingM
I am trying to test collision with convex polyhedra using the SWIFT library. Here are my two shapes:
cube.poly
POLY
8
Okay I am able to read from it. The main problem was that I had not loaded the driver's module. Thanks for the help.
Okay thanks, that was very useful. I found on the USB-I2C Communications Module link a string of bytes that is supposed to read from the compass. If you want to look at it, its about 40% down on the...
That didn't work - same error message. Also, I got no warnings about a pointer. What I don't understand is why I am opening and sending /dev/i2c-0 instead of /dev/ttyUSB0 whenever it is connected...
I am trying to interface with a Devantech digital compass found here -
Devantech Compass
I am using a i2c-usb converter to plug it into my laptop -
USB-I2C Communications Module
First of...
I am trying to compile the projects found here
USB-I2C/SPI/GPIO Interface Adapter.
I downloaded the i2c_bridge-0.0.1-rc2.tgz package. I installed libusb and that seemed to go well with no...
Would I be filing the bug with Debian or FLTK?
Hi,
I made a GUI for my project a few months ago and it worked fine. I left it alone for a few months and then went back to add to it. But now the window is empty. I have a class called GUIWindow...
Oh, of course. Thanks!
My class has a std::vector member that works fine when declared like this -
private:
std::vector<Position> path;
But I want to be able to give it an initial size (of say 20) like
Thanks for the replies everyone. I am about to start up on this code again, but first -
I use valgrind, but it doesn't crash with valgrind...it just exits normally. According to Valgrind there is...
Hi, whenever I quit my program, it will crash instead due to an free(): invalid pointer. When I back trace with gdb, this what I get -
(gdb) back
#0 0xb7fe2424 in __kernel_vsyscall ()
#1 ...
Oh so there is nothing special in the code to be done? You just check for the labels? And is there any difference between two dashes and one or is that just a preference?
I know how to USE command line arguments...but how do you make it so they are inputted with labels?
Hi, I'm not sure if this is the right forum for this, but how do I label command line arguments? It might be called something different...but what I mean is like when I run a program like...
Oh and the lines in the trace are -
#12 ~Node (this=0x8066900, __in_chrg=<value optimized out>) at tree.cpp:24
Tree::Node::~Node() {}
#13 ~Tree (this=0x8066900, __in_chrg=<value...
Ouch, I thought those code boxes might give a sliding bar...
I am getting a double free error when I run my code and don't know why. The relevant code is just an a* traversal and the double free is happening when I delete my tree. To get the code out of the...
Whenever I run that code, with or without the explicit pthread_exit, I still get a possible memory loss of 144 bytes each time. So I should just regard that as wrong?
Whenever I run valgrind on my program, it is telling that I have possibly lost memory wherever I call pthread_create. I have been trying to follow the guidance on
valgrind memory leak errors when...
I am trying to add a target to my makefile to compile the project in windows using MinGW. Whenever I try to compile, it compiles all of the object and then tells me all the libraries cannot be found,...
This is my favorite c++ book I own -
BARNES & NOBLE | C++ for Programmers (Deitel Developer Series) by Paul J. Deitel | NOOK Book (eBook), Paperback
It's pretty thick, but it covers a lot of...
I didn't read the rest of the post very carefully, but I'm assuming it just follows this idea. When I want to do this, just make the static function. Then also make an inline function in the class to...
I have a class that I want to hold a value in like this -
class guiwindow {
public:
guiwindow();
~guiwindow();
Fl_Window& getWindow();
private:
Hi, I want to write code so that pressing a specified button, at any time, will run some function. I don't really have an idea of how to do this. Can anyone point me in some direction? To give more...