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

How to make a code for teleoperation turtlebot and ros using pure C.

asked 2014-11-05 06:37:17 -0500

leobber gravatar image

I need to make a code to move the turtlebot both the simulator and the real robot, I've done this code in c ++ but need to run the same in C pure, which will use the functions that receive parameters and bring back the topic as a library in pascals. I wonder is this possible and how can I do!

Thank you

edit retag flag offensive close merge delete

Comments

Do you need actual pure C as in compile as C or do you want a C-style code or do you only need a C-interface to some functionality?

dornhege gravatar image dornhege  ( 2014-11-05 06:48:20 -0500 )edit

I initially need a C code that uses teleoperation for turtlebot if possible would like it to be in C, but I saw reports that I have to make a code in C and functions to send and receive a code C ++ to communicate with the ROS, if so help me, too, am new to developing for ROS. Thank you

leobber gravatar image leobber  ( 2014-11-05 06:55:14 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted
2

answered 2014-11-05 11:48:54 -0500

ahendrix gravatar image

ROS doesn't provide a native C API.

It might be possible to write a wrapper library which exposes some aspects of ROS as a C API, and then you could create a Pascal wrapper around that library. This will require a fairly substantial understanding of the ROS C++ API, and isn't really something I'd recommend for a beginner.

Is there a specific reason that you need to use Pascal instead of C++ or Python?

If there is a JSON library for pascal, you might be able to write a pure Pascal library which communicates with rosbdrige_suite. It won't be incredibly fast, but it will probably be far easier to develop and use.

edit flag offensive delete link more

Comments

The Paschal would I want to use Lazarus, Lazarus would use to create an interface that interacted directly with both turtlebot the gazebo when simulating real. About creating a JSON library pascal COULD orientadar me where I can get the research.

leobber gravatar image leobber  ( 2014-11-05 15:09:08 -0500 )edit

The interest in using pascal to integrate the features that I will use the turtlebot and ROS, would gain the title at runtime, or opnion of you should use the codes directly in ROS, running from packages?

If it is actually better and faster'll be in native languages!

leobber gravatar image leobber  ( 2014-11-05 15:10:42 -0500 )edit
1

answered 2014-11-05 14:08:53 -0500

Mani gravatar image

rosc is a pure C implementation of ROS API (currently in alpha): http://wiki.ros.org/rosc

edit flag offensive delete link more
0

answered 2014-11-05 15:07:28 -0500

leobber gravatar image

updated 2014-11-05 15:16:37 -0500

The Paschal would I want to use Lazarus, Lazarus would use to create an interface that interacted directly with both turtlebot the gazebo when simulating real. About creating a JSON library pascal COULD orientadar me where I can get the research.

The interest in using pascal to integrate the features that I will use the turtlebot and ROS, would gain the title at runtime, or opnion of you should use the codes directly in ROS, running from packages?

If it is actually better and faster'll be in native languages!

OBS: rosbridge and was looking to get it in theory I could write a library in any language to interact with the ROS, but is only running for debian. or is this even something I did wrong?

Basically and originally wanted a library and sample code in pascal I could teleoperate turtlebot in the gazebo.

I would very much like to see a code example so that would give me vision to increase the functionality and use of the communication between languages!

Thank you

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-11-05 06:37:17 -0500

Seen: 382 times

Last updated: Nov 05 '14