Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

common::URI example request

Hi All,

I am quite new to Gazebo and C++. I want to get the full name of a joint, can I use the URI for that like:

common::URI uri = joint->URI(); ROS_INFO("jointname = %s", uri->Str());

I don't know how to use common::URI

Point is that I want to access a joint in another function like: std::string jointName = this->modelPtr->GetName() + "leftjoint"; physics::JointPtr jointPtr = this->modelPtr->GetJoint(jointName);

Thanks, Peter

click to hide/show revision 2
None

common::URI example request

Hi All,

I am quite new to Gazebo and C++. I want to get the full name of a joint, can I use the URI for that like:

common::URI uri = joint->URI();
ROS_INFO("jointname = %s", uri->Str());

uri->Str());

I don't know how to use common::URI

Point is that I want to access a joint in another function like:
std::string jointName = this->modelPtr->GetName() + "leftjoint";
physics::JointPtr jointPtr = this->modelPtr->GetJoint(jointName);

this->modelPtr->GetJoint(jointName);

Thanks, Peter

click to hide/show revision 3
None

common::URI example request

Hi All,

I am quite new to Gazebo and C++. I want to get the full name of a joint, can I use the URI for that like:

common::URI uri = joint->URI();
ROS_INFO("jointname = %s", uri->Str());

I don't know how to use common::URI

Point is that I want to access a joint in another function like: like:

std::string jointName = this->modelPtr->GetName() + "leftjoint";
physics::JointPtr jointPtr = this->modelPtr->GetJoint(jointName);

Thanks, Peter