ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Ps3 tutorial "Add the following line to your CMakeLists.txt file" where?

asked 2014-07-28 10:01:00 -0600

dshimano gravatar image

I'm going through the PS3 tutorials hoping to learn how to control a quadrotor using ros with a controler. In the tutorial Writing a Teleoperation Node for the PS3 Joystick you are told to add to the CMakeList.text file rosbuild_add_executable(turtle_teleop_ps3joy src/turtle_teleop_ps3joy.cpp) and then run rosbuild on your file. I'm not sure how to do this? In which CMakeList do I add this? In the src file in my workspace? Or in the package I'm working in? And were in the CMakeList do I add it?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-07-28 10:32:01 -0600

gerhenz gravatar image

1)The CMakeLists.txt that you need to modify is the one inside the folder of the package you've created for the tutorial.

2)You can add the additional line at the bottom of the document.

3)After you save the file, you need to run rosmake on your package. Open a new terminal and type:

rosmake learning_ps3joy

If you used a different name for the package, remember to change it in the above command as well.

I'm new to ROS, so I may have said something wrong or missed some step.

Hope this helps you.

edit flag offensive delete link more

Comments

Hi, so I tried this and am now getting an error [ rosmake ] WARNING: The following args could not be parsed as stacks or packages: ['learning_ps3joy/'] [ rosmake ] ERROR: No arguments could be parsed into valid package or stack names. I'm not sure if this is the same issue or a new one? Thanks

dshimano gravatar image dshimano  ( 2014-07-29 08:41:41 -0600 )edit

Try following the instructions I posted in your other question

gerhenz gravatar image gerhenz  ( 2014-07-30 03:04:22 -0600 )edit

Thanks. That worked, but now I'm having new problems... I'll post a new question if I can't figure this out.

dshimano gravatar image dshimano  ( 2014-07-30 09:54:05 -0600 )edit
0

answered 2014-07-28 10:16:05 -0600

dornhege gravatar image

In the package that you are working on. There should already be a commented line that looks similar to that one. Just use this.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-07-28 10:01:00 -0600

Seen: 312 times

Last updated: Jul 28 '14