Skip to content

Comments

parameterized light bars#14

Open
LuminousLlama wants to merge 4 commits intomainfrom
maniskill-lightbar-colors
Open

parameterized light bars#14
LuminousLlama wants to merge 4 commits intomainfrom
maniskill-lightbar-colors

Conversation

@LuminousLlama
Copy link
Contributor

No description provided.

Comment on lines 31 to 34
DeclareLaunchArgument(
"cpu_sim",
default_value="false",
default_value="true",
),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will make this parameter true for everybody. You can change the default values for ur specific development process but dont commit them

Comment on lines 81 to 88
DeclareLaunchArgument(
"primary_color",
default_value="blue",
),
DeclareLaunchArgument(
"secondary_color",
default_value="blue",
)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think it would be a good idea to rename it to smth like primary_robot_color

Comment on lines 82 to 90
for part in shape.parts:
part.material.set_base_color([0, 0, 1, 1])
part.material.set_emission([0, 0, 100, 100])
if "color" in self.options:
if self.options["color"] == "blue":
part.material.set_base_color([0, 0, 1, 1])
part.material.set_emission([0, 0, 100, 100])
elif self.options["color"] == "red":
part.material.set_base_color([1, 0, 0, 1])
part.material.set_emission([100, 0, 0, 100])
part.material.set_emission_texture(None)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of a string lets make the "robot color" ros parameter a 4 long array of floats. That way we can also parameterize the rgba values instead of hard coding them

@LuminousLlama LuminousLlama changed the title Add full code for review (somehow got deleted) parameterized light bars Sep 17, 2025
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

Successfully merging this pull request may close these issues.

2 participants