Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with "decoration" #33

Open
igs3000 opened this issue Oct 18, 2021 · 0 comments
Open

Issue with "decoration" #33

igs3000 opened this issue Oct 18, 2021 · 0 comments

Comments

@igs3000
Copy link

igs3000 commented Oct 18, 2021

The Netsimulyzer documentation shows the following way to use the "decoration" feature

auto decoration = CreateObjectnetsimulyzer::Decoration(/* the orchestrator */);
decoration.SetAttribute ("Model", StringValue ("path/model.obj"));
decoration.SetAttribute ("Height", DoubleValue (2.0));

But if we try to set a 3D object as decoration it ends with following error:,

error: ‘class ns3::Ptrns3::netsimulyzer::Decoration’ has no member named ‘SetAttribute’
decoration.SetAttribute ("Model", StringValue("mymodel.obj"));

Then I managed to run it by using decoration-> reference operator as follows :

auto decoration = CreateObjectnetsimulyzer::Decoration(orchestrator);
decoration->SetAttribute ("Model", StringValue("mount.blend1.obj"));
decoration->SetPosition ({0.0,0.0,0.0});
//decoration->SetAttribute ("Height", DoubleValue (0));
decoration->SetAttribute ("Scale" , DoubleValue (100));

Now if I comment the “Height” attribute setting line, then it works and opened the model in the visualizer.
But if I uncomment the line “Height” attribute setting line, then the compiler ends with following error: (In fact, as document says, I am trying to change height before changing the scale.

Build failed
-> task in 'mytestsimulation failed with exit status 1 (run with -v to display more information)

Why the 'decoration.SetAttribute. is not working? (dot)
Why adjusting height of the decorative 3D model is not working?.

Charles Pandian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant