Ask Your Question
0

I would like to edit turtlesim_teleop_key

asked 2018-12-04 04:42:31 -0600

Hyoungmin gravatar image

How would I do so?

I tried googling and messing around myself, but I can't seem to find how to do so.

Thanks in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-12-04 05:36:34 -0600

hamid gravatar image

updated 2018-12-04 05:37:02 -0600

hi
i create pkg for you just do these step to compile it:

$ mkdir -p ~/catkin_ws/src
$ cd ~/catkin_ws/
$ catkin_make
$ cd ~/catkin_ws/src
$ git clone https://github.com/hamididari/ros_exa...
$ cd ..
$ catkin_make
these step compile the source code and you can run the app like this:
$source catkin_ws/devel/setup.bash
$rosrun ros_example_pkg ros_example_pkg_node
for changing the code just edit main.cpp in ros_example_pkg/src and make again

edit flag offensive delete link more

Comments

Thank you so much! I'll try it out!

Hyoungmin gravatar imageHyoungmin ( 2018-12-04 06:28:15 -0600 )edit

editing main.cpp doesn't seem to change the turtle's movement. like I tried exchanging left and right keys, but the turtlesim still works normally. any idea why this might be?

edit: nvm, i catkin_make it and it worked!

Hyoungmin gravatar imageHyoungmin ( 2018-12-04 07:15:15 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-12-04 04:42:31 -0600

Seen: 22 times

Last updated: Dec 04 '18