https://github.com/advrhumanoids/drc_shared

DRC shared

https://github.com/advrhumanoids/drc_shared

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.7%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

DRC shared

Basic Info
  • Host: GitHub
  • Owner: ADVRHumanoids
  • Language: C++
  • Default Branch: master
  • Size: 334 KB
Statistics
  • Stars: 0
  • Watchers: 22
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created about 9 years ago · Last pushed about 9 years ago
Metadata Files
Readme

README.md

drc_shared

This repository is a generic container of classes and utilities shared among all the other projects. It contains:

  • yarprpcinterface.hpp Public yarp_rpc interface wrapper around the yarp rpc port (simplifies usage and construction)
  • internalyarprpcinterface.hpp Internal implementation of the yarprpc_interface
  • plannermsgs A set of yarp messages headers related to the flatwalk planner
  • state_machine.hpp A simple and easy to use state machine, do not use this for complex (more than 30 state) state machines
  • utils Nothing important here at this time of writing
  • yarpgrabbers A set of ros-like publishers/subscribers implemented with yarp, to be used for the flatwalk planner
  • yarp_msgs A set of yarp messages headers (see below)

  • ./include/drcshared/yarpmsgs:

    • door_msg.h
    • fsperceptionmsg.h
    • fsplannermsg.h
    • fswalkingmsg.h
    • robotInterfaceStatus.h
    • robotplannedstate_msg.h
    • TickTime.h
    • trjgeneratormsg.h
    • valve_msg.h
    • YARP_Header.h
    • YARPOccupancyGridmsg.h
    • YARP_PCLPointField.h
    • YARP_PointCloud2.h
    • YARP_Point.h
    • YARP_Pose.h
    • YARP_Quaternion.h

How to add a new message

  • Create a new file similar to the following one:

```javascript

ifndef ANAMEMSG_H

define ANAMEMSG_H

include

include

/* * MESSAGE STRUCTURE EXAMPLE * * N° of joints | "robot joints" | values * * e.g: 3 robot joints 0.3 0.4 0.1 * */

class anamemsg { public:

//DATA STRUCTURE HERE, make your own
std::map<std::string,double> joints;

yarp::os::Bottle toBottle()
{
    yarp::os::Bottle temp;
    yarp::os::Bottle& list= temp.addList();

    //ADD YOUR OWN STUFF HERE
    list.addString("robot joints");
    list.addInt(joints.size());
    for(std::map<std::string,double>::iterator it=joints.begin();it!=joints.end();++it)
    {
        list.addString(it->first);
        list.addDouble(it->second);
    }

    return temp;
}

void fromBottle(yarp::os::Bottle* temp)
{
    yarp::os::Bottle* list = temp->get(0).asList();

    //READ YOUR OWN STUFF HERE IN THE SAME ORDER AS WRITING
    std::string header = list->get(0).asString();
    int joint_number = list->get(1).asInt();
    unsigned int j=2;
    for(unsigned int i=0; i<joint_number;i++)
    {
        joints[list->get(j).asString()] = list->get(j+1).asDouble(); 
        j+=2;
    }

    return;
}

};

endif // ANAMEMSG_H

```

Owner

  • Name: ADVR Humanoids
  • Login: ADVRHumanoids
  • Kind: organization
  • Email: luca.muratore@iit.it
  • Location: Istituto Italiano di Tecnologia

Humanoids & Human Centered Mechatronics, HHCM, IIT

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: about 1 year ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels