Gazebo | Ignition | Community
Ask Your Question

temero's profile - activity

2021-09-23 09:37:51 -0600 asked a question What is the current stage of web visualization in Ignition?

What is the current stage of web visualization in Ignition? Hi there! For Ignition Dome there is a Web Visualization tu

2021-09-02 08:42:53 -0600 received badge  Notable Question (source)
2021-08-23 09:28:04 -0600 marked best answer Ignition Gazebo: set joint position

Hi

I want to manually set a joint position in my plugin for Ignition and trying to figure out how to do it. I've tried to set it through the JointPosition component but with no success.

What I did:
1. Found joint by the name
2. Created JointPosition component for this joint
3. Used SetData() to set new joint position
4. Used SetChanged to force an update on the client side

Entity joint = _ecm.EntityByComponents(
  components::ParentEntity(this->ownerEntity),
  components::Name(jointName),
  components::Joint());

auto jointPosComp = _ecm.Component<components::JointPosition>(joint);
if (jointPosComp == nullptr)
{  
  _ecm.CreateComponent(joint,components::JointPosition());
  ignmsg << "jointPosComp created" << std::endl;
  _ecm.CreateComponent(joint, components::JointVelocity());
  return;
}

ignerr << "jointPosComp: " << jointPosComp->Data()[0] << std::endl;

jointPosComp->SetData(std::vector<double>{newJointPos},
      [](const std::vector<double> &, const std::vector<double> &) -> bool
      {
        // No check for equality - always return false
        return false;
      });
_ecm.SetChanged(this->ownerEntity,components::JointPosition::typeId,ComponentState::OneTimeChange);

When I run it in PreUpdate section, even though I change JointPosition, I still get a JointPosition of 0 on the next iteration.

Any suggestions how to manually change joint position?

Thx

2021-08-23 09:28:00 -0600 commented answer Ignition Gazebo: set joint position

JointPositionReset is working fine. Thank you.

2021-08-23 09:27:28 -0600 answered a question Ignition Gazebo: set joint position

JointPositionReset is working fine. Thank you.

2021-08-23 07:57:04 -0600 received badge  Popular Question (source)
2021-08-16 03:37:53 -0600 edited question Ignition Gazebo: set joint position

Ignition Gazebo: set joint position Hi I want to manually set a joint position in my plugin for Ignition and trying to

2021-08-16 03:31:23 -0600 edited question Ignition Gazebo: set joint position

Ignition Gazebo: set joint position Hi I want to manually set a joint position in my plugin for Ignition and trying to

2021-08-16 03:30:30 -0600 edited question Ignition Gazebo: set joint position

Ignition Gazebo: set joint position Hi I want to manually set a joint position in my plugin for Ignition and trying to

2021-08-16 03:28:34 -0600 edited question Ignition Gazebo: set joint position

Ignition Gazebo: set joint position Hi I want to manually set a joint position in my plugin for Ignition and trying to

2021-08-16 03:27:41 -0600 edited question Ignition Gazebo: set joint position

Ignition Gazebo: set joint position Hi I want to manually set a joint position in my plugin for Ignition and trying to

2021-08-16 03:27:35 -0600 edited question Ignition Gazebo: set joint position

Ignition Gazebo: set joint position Hi I want manually set a joint position in my plugin for Ignition and trying to fig

2021-08-16 03:27:35 -0600 received badge  Editor (source)
2021-08-16 03:27:06 -0600 asked a question Ignition Gazebo: set joint position

Ignition Gazebo: set joint position Hi I want manually set a joint position in my plugin for Ignition and trying to fig

2021-06-23 15:32:18 -0600 received badge  Enthusiast
2021-06-16 12:04:34 -0600 answered a question [Ignition Edifice] Newbie misunderstanding gazebo topics ?

I've had kinda the same issue. I've had tutorial simulation running in one terminal window, was publishing tutorial msgs

2021-06-16 11:52:06 -0600 asked a question Working with Frames via API in Igntion Gazebo

Working with Frames via API in Igntion Gazebo Hello! I'm exploring Ignition Gazebo and so far understand that almost al

2021-06-16 11:34:40 -0600 commented answer Ignition Edifice examples fails to work properly

Thx. Maybe put a note in the installation tutorial?

2021-06-16 11:30:02 -0600 received badge  Supporter (source)
2021-06-16 11:30:01 -0600 marked best answer Ignition Edifice examples fails to work properly

Hello!

I've been exploring Ignition Gazebo throw the examples and noticed that there are problems with examples with collada models. Either collada model visual is missing (like in camera_sensor.sdf for example) or model crashes (actor.sdf).

Screenshot

Video

I'm experiencing the same problem on 2 PCs (nvidia quadro / nvidia gtx). OS: Ubuntu 20.04 Ignition Edifice binary installation

Does anyone have such problem? Any solutions?

2021-06-16 11:30:01 -0600 received badge  Scholar (source)
2021-06-09 03:16:56 -0600 received badge  Notable Question (source)
2021-06-08 02:09:27 -0600 received badge  Popular Question (source)
2021-06-05 12:01:50 -0600 asked a question Ignition Edifice examples fails to work properly

Ignition Edifice examples fails to work properly Hello! I've been exploring Ignition Gazebo throw the examples and noti